Module

cli

Command-line interface for Bengal SSG.

Alias System:

Bengal supports intuitive command aliases for faster workflows:

Top-level shortcuts (most common operations):
    bengal build     → bengal site build
    bengal serve     → bengal site serve
    bengal dev       → bengal site serve (alias)
    bengal clean     → bengal site clean
    bengal check     → bengal validate

Short aliases (single letter for power users):
    bengal b         → bengal build
    bengal s         → bengal serve
    bengal c         → bengal clean
    bengal v         → bengal validate

All original nested commands still work for discoverability.

Functions

main
Bengal Static Site Generator CLI. Build fast, modern static sites with Python. Quick Start: b…
1 None
def main(ctx: click.Context) -> None

Bengal Static Site Generator CLI.

Build fast, modern static sites with Python.

Quick Start:

bengal build          Build your site
bengal serve          Start dev server with live reload
bengal new site       Create a new site

Shortcuts:

bengal b              Build (short alias)
bengal s / dev        Serve (short aliases)
bengal c              Clean (short alias)

For more information, see: https://bengal.dev/docs

Parameters 1

Name Type Default Description
ctx click.Context