Getting started
Commands
Every npm script in the repo and when to run it.
01Every day
| Command | What it does |
|---|---|
npm run dev | Development server on port 3000 |
npm run check | Typecheck, lint and unit tests. Run it before calling a change done |
npm run new:feature -- invoices | Scaffold a workspace-scoped feature with tests |
npm run agents:sync | Copy skills into the folders Claude Code, Cursor and Codex read |
npm run email:dev | Preview email templates in the browser |
02Database
| Command | What it does |
|---|---|
npm run db:generate -- --name what | Write a migration from db/schema.ts |
npm run db:migrate | Apply pending migrations |
npm run db:seed | Upsert plans from config/plans.ts and the admin user |
npm run db:seed:demo | Demo workspaces and data, local Docker database only |
npm run db:query -- "select …" | Read-only SQL |
npm run db:studio | Drizzle Studio |
03Tests and release
| Command | What it does |
|---|---|
npm run test:e2e:local | Build, serve on port 3100 and run the Playwright tests |
npm run test:db | Credit, order and plan tests on a local database |
npm run brand:check | List placeholders left before launch |
npm run screenshots -- --url … | Capture the product screenshots |
npm run build | Production 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.