Usage
bengal.site.build [OPTIONS]
Options
| Option | Type | Description |
|---|---|---|
--all-versions
flag
|
BOOLEAN |
Build all versions in parallel (git mode only) |
--assets-pipeline
flag
|
BOOLEAN |
Enable/disable Node-based assets pipeline (overrides config) |
--version
|
TEXT |
Build only a specific version (git mode only, e.g., 0.1.6) |
--clean-output
flag
|
BOOLEAN |
Delete the output directory before building (useful for CI cache-busting). |
--config
|
PATH |
Path to config file (default: bengal.toml) |
--dashboard
flag
|
BOOLEAN |
Launch interactive Textual dashboard (experimental) |
--debug
flag
|
BOOLEAN |
Show debug output and full tracebacks (maps to dev profile) |
--dry-run
flag
|
BOOLEAN |
Preview build without writing files (shows what WOULD happen) |
--environment, -e
|
CHOICE |
Environment name (auto-detects if not specified) |
--explain
flag
|
BOOLEAN |
Show detailed incremental build decision breakdown (why pages are rebuilt/skipped) |
--explain-json
flag
|
BOOLEAN |
Output --explain results as JSON (for tooling integration) |
--fast
flag
|
BOOLEAN |
Fast mode: quiet output, guaranteed parallel, max speed (overrides config) |
--full-output
flag
|
BOOLEAN |
Show full traditional output instead of live progress (useful for debugging) |
--incremental
flag
|
BOOLEAN |
Incremental mode: auto when omitted (uses cache if present). |
--log-file
|
PATH |
Write detailed logs to file (default: .bengal/logs/build.log) |
--memory-optimized
flag
|
BOOLEAN |
Use streaming build for memory efficiency (best for 5K+ pages) |
--no-parallel
flag
|
BOOLEAN |
Force sequential processing (bypasses auto-detection). Use for debugging or benchmarking. |
--perf-profile
|
PATH |
Enable performance profiling and save to file (default: .bengal/profiles/profile.stats) |
--profile
|
CHOICE |
Build profile: writer (fast/clean), theme-dev (templates), dev (full debug) |
--profile-templates
flag
|
BOOLEAN |
Profile template rendering times (shows which templates and functions are slow) |
--quiet, -q
flag
|
BOOLEAN |
Minimal output - only show errors and summary |
--strict
flag
|
BOOLEAN |
Fail on template errors (recommended for CI/CD) |
--traceback
|
CHOICE |
Traceback verbosity: full | compact | minimal | off |
--dev
flag
|
BOOLEAN |
Use developer profile with full observability (shorthand for --profile dev) |
--theme-dev
flag
|
BOOLEAN |
Use theme developer profile (shorthand for --profile theme-dev) |
--validate
flag
|
BOOLEAN |
Validate templates before building (catch errors early) |
--verbose, -v
flag
|
BOOLEAN |
Show detailed build output (phase timing, build stats). Does NOT change profile. |
Arguments
| Argument | Type | Description |
|---|---|---|
source
|
PATH |
Default:.
|