rb
Complete reference for spry rb command-line tools
ls
List all tasks in markdown files.
spry rb ls [paths...]Options
--no-color- Output without ANSI colors
Examples
spry rb lsList all tasks in the current directory.
spry rb ls Spryfile.mdList tasks from a specific file.
spry rb ls *.mdList tasks from all markdown files.
spry rb ls --no-colorOutput without ANSI colors.
task
Execute specific task and its dependencies.
spry rb task <taskId> [paths...]Options
--verbose <style>- Output format:plain(simple text),rich(colored/formatted),markdown(markdown formatted)--summarize- Generate JSON summary of execution results
Examples
spry rb task task-1Run a specific task.
spry rb task task-1 --verbose richRun with detailed colored output.
spry rb task task-1 --summarizeRun with JSON summary of results.
spry rb task task-1 --verbose rich --summarizeRun with all options enabled.
run
Execute all code cells in markdown documents as a DAG (Directed Acyclic Graph).
spry rb run [paths...]Options
-h, --help- Show help information--verbose <style>- Emit information messages verboselyplain- Plain text outputrich- Colorized/formatted outputmarkdown- Markdown formatted output
--graph <name>- Run only nodes in provided graph(s)--summarize- Emit summary after execution in JSON format--visualize <style>- Visualize the DAG before/during executionascii-tree- Tree structure diagramascii-workflow- Workflow sequence diagramascii-flowchart- Detailed flowchart formatmermaid-js- Mermaid graph syntax
Examples
# Run all tasks in order
spry rb run
# Run from specific file
spry rb run Spryfile.md# Plain text output
spry rb run --verbose plain
# Colored detailed output
spry rb run --verbose rich
# Markdown formatted output
spry rb run --verbose markdown# Run only Graph A tasks
spry rb run --graph A
# Run Graphs A and B
spry rb run --graph "A,B"# Show task tree structure
spry rb run --visualize ascii-tree
# Show workflow sequence
spry rb run --visualize ascii-workflow
# Show detailed flowchart
spry rb run --visualize ascii-flowchart
# Show Mermaid diagram
spry rb run --visualize mermaid-js# JSON execution summary
spry rb run --summarize
# Output with visualization
spry rb run --verbose rich --visualize ascii-workflow
# Save execution log
spry rb run --verbose rich --summarize > execution.jsonissues
Display errors, warnings, and validation issues in markdown documents.
spry rb issues [paths...]What It Detects
- Malformed code block syntax
- Invalid task IDs
- Circular dependencies
- Missing task references
- Duplicate task names
- Syntax errors
Examples
# Check current file
spry rb issues
# Check specific file
spry rb issues Spryfile.md
# Check all markdown files
spry rb issues *.mdOutput
No Issues:
✓ No issues foundWith Issues:
Spryfile.md:
Line 42: ERROR - Circular dependency: task-a → task-b → task-a
Line 58: WARNING - Undefined task reference 'missing-task'
Line 75: ERROR - Missing language specifier in code blockUsage Patterns
Validate Before Running
spry rb issues && spry rb runIn Scripts
if spry rb issues > /dev/null; then
echo "Ready to run"
spry rb run
else
echo "Fix issues first"
fiAlways run spry rb issues before executing tasks to catch potential problems early.
report
Execute all code cells and return results as new markdown.
spry rb report [paths...]Description
Executes all code cells in markdown documents and generates new markdown with embedded outputs. Useful for creating executable documentation and reports with live data.
Examples
# Generate report from current directory
spry rb report
# Generate report from specific file
spry rb report Spryfile.md
# Generate reports from multiple files
spry rb report *.mdOutput Example
Before:
```bash
echo "Hello"
```After:
```bash
echo "Hello"
```
```output
Hello
```The report command will execute all code cells. Ensure your code is safe to run before generating reports.
How is this guide?
Last updated on