mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-27 17:23:34 +00:00
docs(rudag): fix CLI usage - rudag vs npx @ruvector/rudag
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
9536e7f40c
commit
7279bc63f9
1 changed files with 23 additions and 8 deletions
|
|
@ -177,28 +177,43 @@ const restored = await RuDag.fromJSON(json);
|
|||
|
||||
## CLI Tool
|
||||
|
||||
After installing globally or in your project:
|
||||
|
||||
```bash
|
||||
# If installed globally: npm install -g @ruvector/rudag
|
||||
rudag create my-query > my-query.dag
|
||||
|
||||
# Or run directly with npx (no install needed)
|
||||
npx @ruvector/rudag create my-query > my-query.dag
|
||||
```
|
||||
|
||||
### Commands
|
||||
|
||||
```bash
|
||||
# Create a sample DAG
|
||||
npx rudag create my-query > my-query.dag
|
||||
rudag create my-query > my-query.dag
|
||||
|
||||
# Show DAG information
|
||||
npx rudag info my-query.dag
|
||||
rudag info my-query.dag
|
||||
|
||||
# Print topological sort
|
||||
npx rudag topo my-query.dag
|
||||
rudag topo my-query.dag
|
||||
|
||||
# Find critical path
|
||||
npx rudag critical my-query.dag
|
||||
rudag critical my-query.dag
|
||||
|
||||
# Compute attention scores
|
||||
npx rudag attention my-query.dag critical
|
||||
rudag attention my-query.dag critical
|
||||
|
||||
# Convert between formats
|
||||
npx rudag convert my-query.dag my-query.json
|
||||
npx rudag convert my-query.json my-query.dag
|
||||
rudag convert my-query.dag my-query.json
|
||||
rudag convert my-query.json my-query.dag
|
||||
|
||||
# JSON output
|
||||
npx rudag info my-query.dag --json
|
||||
rudag info my-query.dag --json
|
||||
|
||||
# Help
|
||||
rudag help
|
||||
```
|
||||
|
||||
## Use Cases
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue