Dev Command

Start the Lucent development server with hot reload.

Usage

lucent dev

The current dev command does not expose separate --port, --host, --no-migrate, or --no-typegen flags.

Behavior

When running lucent dev:

  1. Lucent locates lucent.config.ts
  2. it finds your app entry file when present
  3. it runs migrations during boot
  4. it regenerates types when typegen.output is configured
  5. it restarts on file changes through Bun's watch mode

Environment

Use Environment as the canonical env reference.

Minimum local setup usually includes:

DATABASE_URL=postgresql://postgres:password@localhost:5432/lucent_example
JWT_SECRET=dev-secret-change-before-production-123

If session auth is enabled, add:

SESSION_SECRET=dev-session-secret-change-before-prod-123

Production-Like Testing

If you want manual control over migrations, use the explicit migration command instead of expecting dev flags:

lucent migrate --dry-run
lucent migrate
lucent dev