CLI Commands

CLI workflow guides for Bengal

1 page in this section

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

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

Seealso

For comprehensive flag references, see the auto-generated CLI Reference.