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:
- Lucent locates
lucent.config.ts - it finds your app entry file when present
- it runs migrations during boot
- it regenerates types when
typegen.outputis configured - 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