07Reference
Commands
The pnpm scripts for development, build, deployment, database, and operations.
Run these from the repository root with pnpm run <script>. The project uses Node.js 24 and pnpm 10.33.0.
Development
| Command | Purpose |
|---|---|
dev | Vite and Cloudflare Workers local development (open http://localhost:3000). |
dev:ui | Vite dashboard development server in Demo Mode. |
preview:local | Build with local resources and run Wrangler preview. |
Build and deploy
| Command | Purpose |
|---|---|
build | Cloudflare managed build entry point (same as build:cf). |
build:local | Local precheck, local D1 migration, and build. |
build:demo | Demo build without resource bindings. |
deploy | Cloudflare managed deploy entry point (same as deploy:cf). |
deploy:demo | Deploy the demo Worker. |
publish | Build and publish from an allowed Cloudflare environment (same as publish:cf). |
publish:demo | Build and publish the demo Worker. |
Database
| Command | Purpose |
|---|---|
db:migrate:local | Apply D1 migrations to the local database. |
db:migrate:cf | Apply D1 migrations to the Cloudflare database. |
db:migration:create | Create a new migration file. |
Operations
| Command | Purpose |
|---|---|
ops:d1:create | Create the D1 database. |
ops:secret:main | Set the MAIN_SECRET Worker secret. |
ops:secret:bootstrap-admin-password | Set the BOOTSTRAP_ADMIN_PASSWORD Worker secret. |
ops:secret:daily-salt | Set the legacy DAILY_SALT_SECRET Worker secret. |
ops:tail | Tail the online Worker logs. |
ops:admin:reset-password | Reset a user's password. See users and accounts. |
Quality checks
| Command | Purpose |
|---|---|
check | Automatically fix formatting and lint problems, then run the build, type checking, translation checks, tests, and specification checks. |
check:verify | Run the full set of checks without automatic fixes. |
typecheck | TypeScript type checking. |
lint, lint:fix | ESLint. |
format, format:check | Prettier. |
check:i18n | Validate translation key completeness. |
test, test:coverage | Unit tests (Vitest), with coverage. |
test:e2e | End-to-end tests. |
These generated files are checked in CI and must be regenerated when the related code changes: generate:openapi (the OpenAPI documents), generate:skills (the skills manifest), and generate:schema (the database schema reference). check:openapi and check:schema verify they are up to date.