Module

cli.commands.new.wizard

Interactive site initialization wizard.

Provides a questionary-based wizard for selecting site presets.

Functions

should_run_init_wizard
Determine if we should run the initialization wizard.
3 bool
def should_run_init_wizard(template: str, no_init: bool, init_preset: str | None) -> bool

Determine if we should run the initialization wizard.

Parameters 3

Name Type Default Description
template str

Selected template name

no_init bool

Whether user explicitly said no to wizard

init_preset str | None

Preset name if provided via flag

Returns

bool

True if wizard should run

run_init_wizard
Run the site initialization wizard and return the selected template ID.
1 str | None
def run_init_wizard(preset: str | None = None) -> str | None

Run the site initialization wizard and return the selected template ID.

Parameters 1

Name Type Default Description
preset str | None None

Optional preset name to use directly without prompting

Returns

str | None

Template ID string or None for blank site