Module

cli.commands.new

Commands for creating new sites, pages, layouts, partials, and themes.

This package provides the 'bengal new' command group with subcommands:

  • site: Create a new Bengal site with optional presets
  • page: Create a new content page
  • layout: Create a new layout template
  • partial: Create a new partial template
  • theme: Create a new theme scaffold

Refactored from single 1,088-line file into focused modules. See RFC: plan/active/rfc-code-quality-improvements.md

Structure:

  • presets.py: Preset definitions for wizard
  • config.py: Configuration directory generation
  • wizard.py: Interactive site initialization wizard
  • site.py: Site creation command and logic
  • scaffolds.py: Page, layout, partial, theme commands

Functions

new
✨ Create new site, page, layout, partial, or theme. Subcommands: site Create a new Bengal…
0 None
def new() -> None

✨ Create new site, page, layout, partial, or theme.

Subcommands:

site      Create a new Bengal site with optional presets
page      Create a new page in content directory
layout    Create a new layout template in templates/layouts/
partial   Create a new partial template in templates/partials/
theme     Create a new theme scaffold with templates and assets