# CLI Commands URL: /docs/building/commands/ Section: commands -------------------------------------------------------------------------------- CLI Commands Workflow guides for Bengal's command-line interface. Essential Commands Command Purpose When to Use bengal build Generate static site Production builds bengal serve Dev server with live reload Local development bengal new Scaffold projects/content Starting new work bengal validate Run health checks Before deploying Quick Reference Build Serve New 1 2 3 4 5 6 7 8# Development build bengal build # Production build bengal build --environment production --strict # Clean output and rebuild bengal build --clean-output 1 2 3 4 5 6 7 8# Start dev server bengal serve # Custom port bengal serve --port 8080 # Open browser automatically bengal serve --open 1 2 3 4 5# New project bengal new site my-site # New page bengal new page "My Post" --section blog Getting Help 1 2 3 4 5 6# General help bengal --help # Command-specific help bengal build --help bengal serve --help Info Seealso For comprehensive flag references, see the auto-generated CLI Reference. -------------------------------------------------------------------------------- Metadata: - Author: lbliii - Word Count: 158 - Reading Time: 1 minutes