Getting started

Commands

Every npm script in the repo and when to run it.

01Every day

CommandWhat it does
npm run devDevelopment server on port 3000
npm run checkTypecheck, lint and unit tests. Run it before calling a change done
npm run new:feature -- invoicesScaffold a workspace-scoped feature with tests
npm run agents:syncCopy skills into the folders Claude Code, Cursor and Codex read
npm run email:devPreview email templates in the browser

02Database

CommandWhat it does
npm run db:generate -- --name whatWrite a migration from db/schema.ts
npm run db:migrateApply pending migrations
npm run db:seedUpsert plans from config/plans.ts and the admin user
npm run db:seed:demoDemo workspaces and data, local Docker database only
npm run db:query -- "select …"Read-only SQL
npm run db:studioDrizzle Studio

03Tests and release

CommandWhat it does
npm run test:e2e:localBuild, serve on port 3100 and run the Playwright tests
npm run test:dbCredit, order and plan tests on a local database
npm run brand:checkList placeholders left before launch
npm run screenshots -- --url …Capture the product screenshots
npm run buildProduction build

04Don't use

npm run db:push exists for Drizzle but skips migrations, so production and your history drift apart. Change the schema with db:generate and db:migrate.