Command

bengal.utils.theme.new

Create a new theme scaffold.

Creates a new theme with templates, partials, and assets. SLUG is the theme identifier used in config (e.g., [site].theme = SLUG).

Usage

bengal.utils.theme.new [OPTIONS]

Options

Option Type Description
--extends TEXT

Parent theme to extend

Default:default
--force flag BOOLEAN

Overwrite existing directory if present

--mode CHOICE

Scaffold locally under themes/ or an installable package

Default:site
--output DIRECTORY

Output directory (for site mode: site root; for package mode: parent dir)

Default:.

Arguments

Argument Type Description
slug required TEXT

Examples

    bengal theme new my-theme
    bengal theme new my-theme --mode package