spc
spc - SQLPage Content Management
Section titled “spc - SQLPage Content Management”Main command for SQLPage content generation and management.
./spry.ts spc [options]Options
Section titled “Options”-p, --package- Emit SQL package to stdout-d, --dialect <dialect>- SQL dialect for package generation (sqliteorpostgres)--fs <directory>- Materialize SQL files to directory--destroy-first- Remove target directory before materialization--watch- Watch for changes and rebuild automatically--with-sqlpage- Start SQLPage server in watch mode--sqlpage-bin <binary>- SQLPage binary path (default:sqlpage)-c, --conf <path>- Write sqlpage.json configuration file
Examples
Section titled “Examples”Package Generation
Section titled “Package Generation”# Generate SQL package for SQLite./spry.ts spc --package
# Generate SQL package for PostgreSQL./spry.ts spc --package --dialect postgresFile Materialization
Section titled “File Materialization”# Materialize files to directory./spry.ts spc --fs dev-src.auto
# With config file generation./spry.ts spc --fs dev-src.auto --conf sqlpage/sqlpage.json
# Clean build (remove existing files first)./spry.ts spc --fs dev-src.auto --destroy-firstDevelopment Mode
Section titled “Development Mode”# Watch mode with auto-rebuild./spry.ts spc --fs dev-src.auto --watch
# Watch mode with SQLPage server./spry.ts spc --fs dev-src.auto --destroy-first --watch --with-sqlpage
# Custom SQLPage binary./spry.ts spc --fs dev-src.auto --watch --with-sqlpage --sqlpage-bin /usr/local/bin/sqlpageDatabase Deployment
Section titled “Database Deployment”# Deploy to SQLite database./spry.ts spc --package | sqlite3 app.db
# Deploy to PostgreSQL./spry.ts spc --package --dialect postgres | psql $DATABASE_URL
# Deploy to remote PostgreSQL./spry.ts spc --package --dialect postgres | psql postgresql://user:pass@host:5432/dbspc ls - List SQLPage Files
Section titled “spc ls - List SQLPage Files”List all SQLPage file entries from Markdown sources.
./spry.ts spc ls [options]Options
Section titled “Options”-i, --pi- Show cell names and INFO lines-I, --pi-attrs- Show cell names, INFO, and attributes-t, --tree- Display as tree structure
Examples
Section titled “Examples”# List all SQLPage files./spry.ts spc ls
# Show as tree./spry.ts spc ls --tree
# Show cell information./spry.ts spc ls --pispc cat - Concatenate File Contents
Section titled “spc cat - Concatenate File Contents”Output contents of SQLPage files matching glob patterns.
./spry.ts spc cat -g <glob> [options]Options
Section titled “Options”-g, --glob <pattern>- Path glob pattern(s) to match (required, repeatable)
Examples
Section titled “Examples”# Show all SQL files./spry.ts spc cat -g "*.sql"
# Show specific files./spry.ts spc cat -g "index.sql" -g "admin/*.sql"