ag_cli 2.0.0
ag_cli: ^2.0.0 copied to clipboard
Flutter GetX code generator CLI. Scaffolds modules, components, models, repos, controllers, bindings, and pages.
example/README.md
Example #
Since ag_cli is a Command Line Interface (CLI) tool, it is not meant to be imported into your Dart code as a library.
Instead, install it globally via terminal:
dart pub global activate ag_cli
And then run it in any Flutter project:
# Initialize a GetX architecture
ag init
# Generate a full module (repo, controller, bindings, pages, components)
ag g module dashboard --full
# Generate a single component
ag g component primary_button
# Preview generation without creating files
ag g module settings --dry-run