CLI Commands
Manage Spry CLI Commands
Command Overview
The Spry CLI provides commands for managing executable Markdown notebooks, SQLPage content, and task orchestration.
General Commands
spry help- Display help information for the CLIspry -h- Display help information for the CLIspry --version- Show the current version numberspry -V- Show the current version number
axiom Commands
spry axiom web-ui- Start Web UI with default file on default portspry axiom web-ui Spryfile.md- Show document hierarchyspry axiom web-ui docs/*.md- Show hierarchy for all docs of docs directoryspry axiom web-ui --port 9090- Start on custom portspry axiom web-ui docs/*.md --port 9090- Start all document files of docs directory on custom portspry axiom web-ui --listen 127.0.0.1- Specify network interfacespry axiom web-ui --no-open- Start without opening browserspry axiom web-ui docs/*.md --no-open- Start all document files of docs directory without opening browserspry axiom ls- List all nodes in default documentspry axiom ls Spryfile.md- List all nodes in Spryfilespry axiom ls README.md docs/guide.md- List nodes from multiple filesspry axiom ls docs/*.md- List nodes from all Markdown files in docs directoryspry axiom ls -n paragraph- Include additional node typesspry axiom ls --node paragraph- Include additional node typesspry axiom ls docs/*.md -n paragraph- Include additional node types for all files of docs directoryspry axiom ls docs/*.md --node paragraph- Include additional node types for all filesspry axiom ls --no-color- List default file without colorsspry axiom ls docs/*.md --no-color- List all files of docs directory without colorsspry axiom inspect- Inspect default filespry axiom inspect docs/*.md- Inspect all files in docs directoryspry axiom inspect --no-color- Inspect default file without colorsspry axiom inspect --no-color docs/*.md- Inspect all files in docs directory without colorsspry axiom projection- Generate projection from default filespry axiom projection docs/*.md- Generate projection from all filesspry axiom projection --pretty- Pretty-print JSON output of defaultspry axiom projection docs/*.md --pretty- Pretty-print JSON output of all filesspry axiom projection --jsonl- Generate JSONL (JSON Lines) output of default filespry axiom projection --jsonl docs/*.md- Generate JSONL (JSON Lines) output of all filesspry axiom shebang- Add shebang to default filespry axiom shebang docs/*.md- Add shebang to all files in docs directoryspry axiom shebang --dry-run- Preview without modifying (dry-run)spry axiom shebang docs/*.md --dry-run- Preview without modifying the files in docs directory (dry-run)spry axiom shebang --entrypoint ./cli.ts- Specify custom entrypoint (default is ./cli.ts)spry axiom shebang docs/*.md --entrypoint ./cli.ts- Specify custom entrypoint for all files in docs directory (default
rb Commands
spry rb run- Execute all code cells in default markdown documents as a DAG (Directed Acyclic Graph).spry rb run Spryfile.md- Execute all code cells in Spryfile.md as a DAG (Directed Acyclic Graph).spry rb run --verbose plain- Plain text output.spry rb run --verbose rich- Colored detailed outputspry rb run --verbose markdown-Markdown formatted outputspry rb run --graph A- Run only Graph A tasksspry rb run --graph "A,B"- Run Graphs A and Bspry rb run --summarize- JSON execution summaryspry rb run --visualize ascii-tree- Show task tree structurespry rb run --visualize ascii-workflow- Show workflow sequencespry rb run --visualize ascii-flowchart- Show detailed flowchartspry rb run --visualize mermaid-js- Show Mermaid diagramspry rb issues- Check default file (Spryfile.md) for issuesspry rb issues Spryfile.md- Check specific file Spryfile.md for issuesspry rb issues docs/*.md- Check all markdown files of docs directoryspry rb report- Generate report from default directory/filespry rb report Spryfile.md- Generate report from specific filespry rb report docs/*.md- Generate reports from all files of docs directoryspry rb task task-1 --verbose rich- Execute with verbose output and summaryspry rb task task-1 --summarize- Run with JSON summary of results.spry rb task task-1 --verbose rich --summarize- Execute with verbose output and summary
SP Commands
spry sp init- Initialize Spryfile.md and import_map.json for local development (default SQLite)spry sp init --dialect postgres- Initialize with PostgreSQL (default SQLite)spry sp init --force- Force reinitialize
SQLPage Content generation and management:
Package Generation
spry sp spc --package- Generate SQL package for SQLitespry sp spc --package --dialect postgres- Generate SQL package for PostgreSQL
File Materialization
spry sp spc --fs dev-src.auto --conf sqlpage/sqlpage.json- Materialize files with config filespry sp spc --fs dev-src.auto --destroy-first --conf sqlpage/sqlpage.json- Clean build (remove existing files first)
Development Mode
spry sp spc --fs dev-src.auto --conf sqlpage/sqlpage.json --watch- Watch mode with auto-rebuildspry sp spc --fs dev-src.auto --conf sqlpage/sqlpage.json --destroy-first --watch --with-sqlpage- Watch mode with SQLPage serverspry sp spc --fs dev-src.auto --conf sqlpage/sqlpage.json --watch --with-sqlpage --sqlpage-bin /usr/local/bin/sqlpage- Watch mode with custom SQLPage binary
Database Deployment
spry sp spc --package | sqlite3 app.db- Deploy to SQLite databasespry sp spc --package --dialect postgres | psql $DATABASE_URL- Deploy to PostgreSQLspry sp spc --package --dialect postgres | psql postgresql://user:pass@host:5432/db- Deploy to remote PostgreSQL
File Operations
spry sp spc ls- List SQLPage filesspry sp spc cat -g "*.sql"- Show file contents matching glob pattern
Command Structure
All commands follow this pattern:
spry [command] [subcommand] [options] [arguments]See individual command pages for detailed usage and examples.
How is this guide?
Last updated on