Reference

Workflow

For your agentCopy this and give it to the AI you're building with.
Run `cubek skill`, read all of it and follow it exactly (no CLI: download https://cubek.dev/SKILL.md verbatim with curl; don't summarize it); when you change this project, follow its "Workflow" section.
Run `cubek check` after every edit until it is clean.
cubek init my-app      # starter (--empty: no example table)
cubek dev              # http://127.0.0.1:8787, recompiles on save
cubek dev --stop       # this project's server only (never pkill)
cubek check            # compile, after every edit
cubek test             # bun test *.test.ts
cubek login            # a human, once, in the browser (or --token T)
cubek deploy [--prod]  # https://<name>--r<N>.cubek.app; --prod: <name>.cubek.app

Apply each error's canonical form:. check lists route classes (db writes run on the primary: keep them in few routes). All commands take --json, --help.

  • Deployed: logs [--follow], sql "SELECT ...", secrets set NAME VALUE, rollback <rev> (deploy.md). Local: sql --dev "..." [--write], secrets --dev set, task run <name> (tasks.md); mail lands in .cubek/mail/*.eml.
  • MCP (claude mcp add cubek -- cubek mcp): the CLI, sdk_types (the exact API as .d.ts), whoami (on 401/403).