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-values | flag | skip all interactive prompts and accept the default value for every question |
| dry-run | flag | preview all changes without creating files, modifying config, installing packages, or running commands — useful for inspecting what the CLI would do before committing |
| skip-melos-bs | flag | skip running melos bs (melos bootstrap) after executing a command in a monorepo workspace |
| skip-dart-fix | flag | skip running dart fix --apply after execution |
| skip-build-runner | flag | skip 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-runxflutter_cli generate model --entity-name=Product --entity-path=product.json --skip-build-runner --skip-dart-fixxflutter_cli create --template=workspace --name=my_workspace --default-values --skip-melos-bs