Github|...

CLI reference

Every spky command, grouped by what you're trying to do. Run spky <command> --help for full flags.

spky --help

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

CommandWhat it does
spky initScaffold a new project: schema, app, config, first migration.
spky devStart 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 migrateDatabase migrations: create, apply, prod, status, fix. Docs
spky lintValidate 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 versionPrint version information.

Adding things to a project

CommandWhat it does
spky api addRegister a backend and generate its outbox table. Docs
spky bucketadd a file bucket, or configure its storage backend. Docs
spky flagFeature 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 initGenerate AGENTS.md, parameterized by your schema. Docs
spky mcpMCP server for editors and agents: serve, token, tokens, revoke, install. Docs

Operating a running system

CommandWhat it does
spky jobsBackground jobs: list, get, kill, retry, clear. No subcommand opens the interactive dashboard. Docs
spky schedulesServer-side schedules: list, get, pause, resume, trigger, runs, sync. Docs
spky workflowsWorkflow DAGs: list, show, watch, runs, kill. show renders the graph, watch follows a run live. Docs
spky logsTail or browse logs. --since, --until, --grep, --filter, --tui. Docs
spky statsLive CPU, memory, disk and network graphs.
spky statusDeployment 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

CommandWhat it does
spky login, spky logoutAuthenticate with Sp00ky Cloud.
spky projectManage cloud projects: create, list, credentials, destroy. Docs
spky deployBuild, upload, provision, migrate, deploy. Docs
spky pushPush 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 envEncrypted variables and the vault: set, list, rm, pull, import, unlock, passphrase, share-ci, reset. Docs
spky domainCustom domains: add, list, remove.
spky backupDatabase backups: list, create, restore, delete, configure, reset. Docs
spky linkGitHub push-to-deploy: setup, status, settings, unlink, trigger, runs. Docs
spky tokenAPI tokens for CI: create, list, revoke.
spky teamMembers and invitations: list, invite, invitations, revoke, remove, rename. Docs
spky billingBilling: 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

spky dev --clean            # rebuild SSP/scheduler state, keep your data
spky dev --clean-db         # also wipe the database
spky deploy --only api,web  # deploy a subset of apps
spky deploy --upgrade       # also pull new SSP/scheduler images
spky doctor --json          # machine-readable health check
spky query --cloud '…'      # run SurrealQL against production
spky logs --since 1h --grep 'error'
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.