- Cozycal
- Develop
- Commands
Commands
Everything you run from apps/cozycal.
| Command | What it does |
|---|---|
bun dev |
Local dev server (app and Worker) at http://localhost:5173 |
bun run build |
Production build into .cloudflare/output |
bun run deploy |
Deploy to Cloudflare by hand (CI does it on every merge) |
bun check |
Lint, format check, typecheck and tests |
bun run smoke |
End-to-end check of the Worker against the running dev server |
bun run verify:sync |
Model-check the sync protocol with TLA+ (needs Java 11+) |
bun run db:generate |
Generate migrations after editing a schema |
bun run db:migrate |
Apply pending D1 migrations to production |
bun run db:migrate:local |
Apply pending D1 migrations to local dev state |
Smoke test
Section titled “Smoke test”bun run smoke needs bun dev running with SETUP_CODE=smoke-setup-code in .dev.vars, or the
same SETUP_CODE exported in the shell. It signs up with a software passkey, so it works on any
local state. If a response changes on purpose, bun run smoke --update rewrites
scripts/smoke.expected.jsonl.
Stickers
Section titled “Stickers”“Inventer un autocollant” asks Claude for three drawings in the style of the starter set. It needs
the ANTHROPIC_API_KEY secret, in .dev.vars for local work. Without it the request fails with a
message and the rest of the app is unaffected. Each account is limited to 30 requests a day.