CLI

DW includes several npm scripts for common tasks.

Available Commands

Terminal window
# Development
npm run dev # Start development server
# Build
npm run build # Build for production
# Database
npm run init # Initialize database (first time setup)
npm run migrate # Run database migrations

Astro Commands

All standard Astro CLI commands are available:

Terminal window
npx astro check # Type-check your project
npx astro preview # Preview production build locally