Global Options

The following flags are available on every XFlutter CLI command. You can append them after any command or schematic.
xflutter_cli <command> [global-options]

Options:

Name
Type
Description
default-valuesflagskip all interactive prompts and accept the default value for every question
dry-runflagpreview all changes without creating files, modifying config, installing packages, or running commands — useful for inspecting what the CLI would do before committing
skip-melos-bsflagskip running melos bs (melos bootstrap) after executing a command in a monorepo workspace
skip-dart-fixflagskip running dart fix --apply after execution
skip-build-runnerflagskip running dart run build_runner build after execution

Examples

Preview what a generate screen command would create without writing any files:
xflutter_cli generate screen --path=ui/screens/home --state-management --router --dry-run
Generate a model and skip the automatic build_runner and dart fix steps:
xflutter_cli generate model --entity-name=Product --entity-path=product.json --skip-build-runner --skip-dart-fix
Initialize a workspace with defaults and skip melos bootstrap:
xflutter_cli create --template=workspace --name=my_workspace --default-values --skip-melos-bs