CLI reference
Every spky command, grouped by what you're trying to do. Run spky <command> --help for full flags.
Commands read sp00ky.yml from the current directory. Pass --path <dir> to point at a project
somewhere else, and spky <command> --help for the flags of any single command.
Project & dev loop
| Command | What it does |
|---|---|
spky init | Scaffold a new project: schema, app, config, first migration. |
spky dev | Start the local stack: SurrealDB, SSP, scheduler, your apps. Docs |
spky generate (gen) | Generate client types from sp00ky.yml, or a single file via --input/--output. Docs |
spky migrate | Database migrations: create, apply, prod, status, fix. Docs |
spky lint | Validate sp00ky.yml. |
spky doctor [--json] | Project health: config, codegen freshness, migrations, Docker. Docs |
spky verify [--fix] | Check the SSP/scheduler snapshot against upstream SurrealDB; --fix forces a re-bootstrap. |
spky query [sql] | Run SurrealQL once, or open a REPL. --cloud targets the deployment. |
spky version | Print version information. |
Adding things to a project
| Command | What it does |
|---|---|
spky api add | Register a backend and generate its outbox table. Docs |
spky bucket | add a file bucket, or configure its storage backend. Docs |
spky flag | Feature flags: list, create, get, delete, enable, disable, set, unset, eval. set adds a targeting rule, eval dry-runs one user. Docs |
spky recipe <name> | Render a cookbook snippet (live-list, optimistic-mutation, crdt-text-field). spky recipe list for the index. |
spky agents init | Generate AGENTS.md, parameterized by your schema. Docs |
spky mcp | MCP server for editors and agents: serve, token, tokens, revoke, install. Docs |
Operating a running system
| Command | What it does |
|---|---|
spky jobs | Background jobs: list, get, kill, retry, clear. No subcommand opens the interactive dashboard. Docs |
spky schedules | Server-side schedules: list, get, pause, resume, trigger, runs, sync. Docs |
spky workflows | Workflow DAGs: list, show, watch, runs, kill. show renders the graph, watch follows a run live. Docs |
spky logs | Tail or browse logs. --since, --until, --grep, --filter, --tui. Docs |
spky stats | Live CPU, memory, disk and network graphs. |
spky status | Deployment version, status and running VMs. |
spky restart [--surreal] [--clean] | Restart scheduler and SSP containers. Backends and frontends are untouched. |
spky scale ssp <n> | Scale SSP instances. |
Cloud
| Command | What it does |
|---|---|
spky login, spky logout | Authenticate with Sp00ky Cloud. |
spky project | Manage cloud projects: create, list, credentials, destroy. Docs |
spky deploy | Build, upload, provision, migrate, deploy. Docs |
spky push | Push schema to a free (Cloudflare) project’s SSP node. Paid plans apply schema during deploy. |
spky release <app> | Announce a new version to running clients without deploying. --mandatory, --cache-bust. |
spky env | Encrypted variables and the vault: set, list, rm, pull, import, unlock, passphrase, share-ci, reset. Docs |
spky domain | Custom domains: add, list, remove. |
spky backup | Database backups: list, create, restore, delete, configure, reset. Docs |
spky link | GitHub push-to-deploy: setup, status, settings, unlink, trigger, runs. Docs |
spky token | API tokens for CI: create, list, revoke. |
spky team | Members and invitations: list, invite, invitations, revoke, remove, rename. Docs |
spky billing | Billing: usage, change-plan. No subcommand opens the portal. |
spky notice [message] | Post a notice to the public uptime page. list and remove manage existing ones. |
Flags worth memorising
Note
spky doctor --json is the designed integration point for scripts and AI agents: a stable list of
checks, each with a severity and a fix command. See
AI coding agents.