Documentation
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

CommandPurpose
devVite and Cloudflare Workers local development (open http://localhost:3000).
dev:uiVite dashboard development server in Demo Mode.
preview:localBuild with local resources and run Wrangler preview.

Build and deploy

CommandPurpose
buildCloudflare managed build entry point (same as build:cf).
build:localLocal precheck, local D1 migration, and build.
build:demoDemo build without resource bindings.
deployCloudflare managed deploy entry point (same as deploy:cf).
deploy:demoDeploy the demo Worker.
publishBuild and publish from an allowed Cloudflare environment (same as publish:cf).
publish:demoBuild and publish the demo Worker.

Database

CommandPurpose
db:migrate:localApply D1 migrations to the local database.
db:migrate:cfApply D1 migrations to the Cloudflare database.
db:migration:createCreate a new migration file.

Operations

CommandPurpose
ops:d1:createCreate the D1 database.
ops:secret:mainSet the MAIN_SECRET Worker secret.
ops:secret:bootstrap-admin-passwordSet the BOOTSTRAP_ADMIN_PASSWORD Worker secret.
ops:secret:daily-saltSet the legacy DAILY_SALT_SECRET Worker secret.
ops:tailTail the online Worker logs.
ops:admin:reset-passwordReset a user's password. See users and accounts.

Quality checks

CommandPurpose
checkAutomatically fix formatting and lint problems, then run the build, type checking, translation checks, tests, and specification checks.
check:verifyRun the full set of checks without automatic fixes.
typecheckTypeScript type checking.
lint, lint:fixESLint.
format, format:checkPrettier.
check:i18nValidate translation key completeness.
test, test:coverageUnit tests (Vitest), with coverage.
test:e2eEnd-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.