Skip to main content

ag_flow_cli 0.5.0 copy "ag_flow_cli: ^0.5.0" to clipboard
ag_flow_cli: ^0.5.0 copied to clipboard

The `ag` CLI for ag_flow: generates a fully wired feature module (page, controller, repo, service, binding, components) and registers its route.

example/README.md

ag_flow_cli example #

Add the CLI to a Flutter app, bootstrap AG Flow, and generate modules:

flutter pub add ag_flow go_router
dart pub add --dev ag_flow_cli

dart run ag_flow_cli:ag init                    # lib/core/ skeleton, AGENTS.md, CI check
dart run ag_flow_cli:ag g m product             # a list module
dart run ag_flow_cli:ag g m product/details     # a detail module under it
dart run ag_flow_cli:ag g m order --from-json=order.json --methods=create
dart run ag_flow_cli:ag analyze                 # check the project's structure

Then wire the generated router in lib/main.dart:

void main() {
  InitialBinding().dependencies();
  runApp(MaterialApp.router(routerConfig: AppPages.router));
}

For a complete generated app, see ag_flow/example.

0
likes
160
points
893
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

The `ag` CLI for ag_flow: generates a fully wired feature module (page, controller, repo, service, binding, components) and registers its route.

Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

analyzer, args, dart_mcp, dart_style, io, mason, mason_logger, meta, package_config, path, pluralize, yaml

More

Packages that depend on ag_flow_cli