karna_cli 1.0.0 copy "karna_cli: ^1.0.0" to clipboard
karna_cli: ^1.0.0 copied to clipboard

CLI tool to create and manage Karna MVC Flutter projects.

karna_cli #

CLI tool to create and manage Karna MVC Flutter projects.

Install #

dart pub global activate karna_cli

Commands #

Create a project #

karna create my_app
karna create my_app --org com.mycompany

Scaffolds a full Karna MVC Flutter project with:

  • Typed error handling (Result<T>)
  • Data strategies (localFirst, staleWhileRevalidate, remoteFirst)
  • Memory management (priority-based service lifecycle)
  • Storage-agnostic caching (Hive, SharedPrefs, InMemory)
  • Event bus for cross-feature communication
  • SnackBar notification service

Create a feature #

Run from inside a Karna MVC project:

karna feature auth
karna feature feed --memory-aware

Options:

  • --memory-aware / -m — Use MemoryAwareController with automatic memory management

Generates model, repository, data sources, controller, view, and tests. Automatically registers in providers.dart.

Requirements #

  • Dart SDK ^3.0.0
  • Flutter SDK (for flutter create and flutter pub add)
0
likes
150
points
7
downloads

Documentation

API reference

Publisher

verified publisheraramadani.my.id

Weekly Downloads

CLI tool to create and manage Karna MVC Flutter projects.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, path

More

Packages that depend on karna_cli