# feature_gen_cli

> A Dart CLI tool that generates clean-architecture feature modules for Flutter projects from a JSON schema.

- **URL**: https://www.freshcrate.ai/projects/feature_gen_cli
- **Author**: sanjeev2552
- **Category**: Developer Tools
- **Latest version**: `v1.5.0` (2026-05-25)
- **License**: MIT
- **Source**: https://github.com/sanjeev2552/feature_gen_cli
- **Homepage**: https://pub.dev/packages/feature_gen_cli
- **Language**: Dart
- **GitHub**: 6 stars, 2 forks
- **Registry**: github
- **Tags**: `clean-architecture`, `cli`, `code-generation`, `dart`

## Description

A Dart CLI tool that generates clean-architecture feature modules for Flutter projects from a JSON schema.

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `v1.5.0` | 2026-05-25 | High | **Full Changelog**: https://github.com/sanjeev2552/feature_gen_cli/compare/v1.4.3...v1.5.0 |
| `v1.4.3` | 2026-04-09 | High | ### Features  - **GetX Support** — Added `"getx": true` as a third state-management option in the `config` section alongside `bloc` and `riverpod`. - **GetX Controller** — Generates a Freezed-state-driven `GetxController` with typed success states, loading, and error handling per method. - **GetX Binding** — Generates a `Bindings` class that lazily registers the controller via `get_it` (`sl`). - **GetX State** — Generates a shared Freezed `State` class (identical structure to BLoC/Riverpod |
| `v1.4.2` | 2026-03-31 | Medium | ### Features  - **JSON snake_case Convention Support** — Generated class properties automatically convert JSON `snake_case` representations into Dart-idiomatic `camelCase` across models, entities, and usecase parameters. - **Accurate Model Serialization** — Models automatically annotate properties modified into `camelCase` with `@JsonKey(name: 'original_key')` to guarantee API compatibility. - **Accurate Payload Serialization** — UseCase parameter classes (`PathParams`, `BodyParams`, `QueryP |
| `v1.4.1` | 2026-03-31 | Medium | ### Fix  - **Riverpod Typed States** — Riverpod notifiers now use explicitly generated Freezed `State` classes instead of generic `AsyncValue<Object?>`. This brings the same per-method typed success factories and explicit loading/error states to Riverpod that are available for BLoC.  ### Refactor  - **Template Consolidation** — BLoC and Riverpod state generation now share a unified `presentation/state.mustache` template, eliminating duplicate template logic. |
| `v1.4.0` | 2026-03-30 | Medium | ### Features  - **Multi-Response Support** — The `response` section now accepts multiple named entity types in addition to the existing single-response format. Any response map whose top-level values are all objects is automatically detected as multi-response mode:    ```json   "response": {     "user":  { "id": 123, "name": "string", "email": "string" },     "token": { "accessToken": "string", "refreshToken": "string" }   }   ```  - **Per-Method Response Binding** — Each API method c |
| `v1.1.0` | 2026-03-02 | Low | ### Features  - **Nested Object Support** — Support for nested JSON objects and lists of objects in both API request models (`params`, `body`, `query`) and response entities/models. - **Recursive Model Generation** — Automatically generates nested Freezed models and entities for complex schema structures. - **Enhanced Type Mapping** — Improved template logic for handling lists, maps, and custom types during `toEntity` mapping. - **Root Entity Markers** — Added comments to generated entities |
| `v1.0.0` | 2026-02-28 | Low | ### Features  - **Feature scaffolding** — Generate clean-architecture feature modules from a JSON schema. - **Schema-driven generation** — Define API methods (`params`, `body`, `query`) and response fields in a single JSON file. - **Auto dependency management** — Automatically checks and installs required packages (`flutter_bloc`, `freezed`, `get_it`, `injectable`, etc.). - **Build runner integration** — Runs `build_runner` after generation for Freezed models and JSON serialization. - **Co |

## Citation

- HTML: https://www.freshcrate.ai/projects/feature_gen_cli
- Markdown: https://www.freshcrate.ai/projects/feature_gen_cli.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/feature_gen_cli/deps

_Generated by freshcrate.ai. Indexes github releases for AI-agent ecosystem packages._
