Skip to Content
LaunchfastDocs

Commands

Every npm script in the kit, and when to run it.

CommandWhat it doesWhen
npm run devStarts the development server at http://localhost:3000While building
npm run buildProduction buildBefore deploying; after changing pages, routing or caching
npm startRuns the production build locallyTo test a build
npm run typecheckGenerates Next's route types, then checks TypeScriptBefore committing
npm run lintESLintBefore committing
npm testVitest tests in tests/Before committing; after billing changes
npm run db:generateCreates a migration from changes to src/db/schema.tsAfter editing the schema
npm run db:migrateApplies pending migrations to DATABASE_URLAfter generating, and after pulling kit updates
npm run setupInteractive setup of database, payments, email, sign-in and deployFirst setup; switching to live; adding a plan or domain
npm run make-admin -- <email>Gives an existing account the admin roleOnce, after signing up

All checks at once

npm run typecheck && npm run lint && npm test && npm run build

The kit's GitHub Actions workflow runs the same four on every push.

Useful extras

CommandWhat it does
npx drizzle-kit studioBrowse your database tables in the browser
npx cloudflared tunnel --url http://localhost:3000Public URL for testing webhooks locally
npx vercel env pull .env.production.localDownload Vercel's production variables (to compare with .env.local)
npx vercel logs <url>Stream your live site's logs

On this page