Skip to main content

thunder_cli 3.0.0 copy "thunder_cli: ^3.0.0" to clipboard
thunder_cli: ^3.0.0 copied to clipboard

Create Flutter apps with GetX, BLoC or Cubit in seconds and generate features, API models, Postman collection code and translations.

3.0.0 #

Thunder CLI was rebuilt so every command works again, on current Flutter and Dart.

Breaking

  • Commands are now sub-commands: thunder init, thunder feature <name>, thunder model, thunder c_api, thunder localization. The old flags (thunder --init, --feature, --model, --c_api, --localization, --help) still work.
  • Generated features live in lib/app/features/<name>/ and use package: imports.
  • Minimum Dart SDK is 3.4.

Fixed

  • thunder, thunder --help and thunder --c_api crashed with Could not find an option named "--c_api".
  • thunder --init failed: it cloned a template repository that no longer exists. The template is back as Thunder-Template (the old Flutter-GetX-Template URL redirects to it), and Thunder also ships an offline copy, so init works without the download too.
  • thunder --feature generated controllers and repositories with wrong import paths, so the app did not compile.
  • Windows-only commands (rd /s /q, \ paths) broke Thunder on macOS and Linux.
  • thunder --model asked for a feature name it never used and generated models that crashed on nested lists, numbers sent as 1 instead of 1.0, and keys such as class, first-name or 2fa.
  • thunder --localization crashed when thunder.json did not exist.

New

  • Three state managements: GetX, BLoC and Cubit (thunder init my_app --state getx|bloc|cubit; asked when missing, GetX by default). The choice is saved in thunder.json and every command generates code for it. BLoC and Cubit projects use flutter_bloc, get_it and go_router.
  • thunder init: flutter create + the template of your style, with networking (DioHelper + token interceptor + ApiResult), services (storage, theme, language), a route guard middleware, DI, routing, localization (en/ar), light/dark theme, a home feature, a settings page and passing tests. --template takes your own template (GitHub URL with #branch, git URL, zip URL or folder); --offline uses the bundled copy. Optional git repository, first push to GitHub, Telegram APK GitHub Action and VS Code.
  • thunder feature <name>: view, controller (GetX) / bloc + event + state (BLoC) / cubit + state (Cubit), repository, API endpoint, DI and route in one command. Existing files are never overwritten without --force.
  • thunder model: from a URL (--url, --method, --body, --headers) or a local file (--json).
  • thunder c_api: Postman v2.0 / v2.1 collections with nested folders, path variables (:id, {{id}}), query parameters, raw JSON / form-data / urlencoded bodies and saved example responses (typed response models). Builds a controller, a bloc (one event per request) or a cubit (one method per request) per folder.
  • thunder localization --from en --to ar,fr: only new texts are translated; languages are remembered in thunder.json and added to supportedLocales.
  • Every option can be passed on the command line and --yes never asks questions, so Thunder works in scripts and CI.
  • Generated files are formatted with dart format.
  • Unit tests, an end-to-end script (tool/e2e.sh, all three styles) and GitHub Actions CI.

2.3.5 #

  • Update package structure

2.3.4 #

  • Fix bug when clone repository

2.3.3 #

  • Solve the problem when installing the package

2.3.2 #

  • Enhancement package

2.3.1 #

  • Update architecture
9
likes
160
points
891
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Create Flutter apps with GetX, BLoC or Cubit in seconds and generate features, API models, Postman collection code and translations.

Repository (GitHub)
View/report issues

Topics

#cli #flutter #getx #bloc #code-generation

License

MIT (license)

Dependencies

archive, args, dio, path, translator

More

Packages that depend on thunder_cli