architecture_cli 0.0.2 copy "architecture_cli: ^0.0.2" to clipboard
architecture_cli: ^0.0.2 copied to clipboard

Architecture_CLI is a package designed to streamline the folder structure creation process

architecture_cli #

architecture_cli is a command-line interface tool that generates folder structures for different software architecture patterns in Dart. It provides guidelines for each folder's intended purpose to promote good design and separation of concerns.

Note: If the 'lib' directory exists, the architecture will be created inside the 'lib', otherwise it will be created in the root directory.

Supported Architectures #

architecture_cli currently supports the following software architecture patterns:

  • MVC (Model-View-Controller)
  • MVVM (Model-View-ViewModel)
  • MVP (Model-View-Presenter)
  • Clean Architecture
  • Provider Architecture
  • GetX Architecture
  • BLoC (Business Logic Component) Architecture
  • BLoC only structure

Installation #

You can install architecture_cli from pub.dev by running the following command:

dart pub global activate architecture_cli
copied to clipboard

Usage #

To create a new architecture structure, run the following command:

architecture_cli --create [name]
copied to clipboard
  • Alternatively, you can use the following commands:
folder_cli --create [name]
copied to clipboard
arch_cli --create [name]
copied to clipboard

Where [name] is the name of the desired architecture pattern. For Example:

architecture_cli --create mvc
copied to clipboard

After generating the architecture structure, you will find a Markdown file in the generated folder structure that provides guidelines for each folder's intended purpose.

Examples #

Here are some examples of the commands you can use to generate different architecture patterns:

  • Generate a GetX architecture structure:
architecture_cli --create getx
copied to clipboard
  • Generate a Clean Architecture structure:
architecture_cli --create clean_architecture
copied to clipboard
  • Generate an MVP architecture structure:
architecture_cli --create mvp
copied to clipboard
  • Generate a Provider architecture structure:
architecture_cli --create provider
copied to clipboard
  • Generate a BLoC structure:
architecture_cli --create bloc
copied to clipboard
  • Generate a BLoC App structure:
architecture_cli --create bloc_app
copied to clipboard

Support #

If you find this package helpful, please consider buying me a coffee!

Buy Me A Coffee

Thank you for your support!

— Hammad Parveez

Profile Picture

— Visit devhammad.com

47
likes
135
points
25
downloads

Publisher

verified publisherdevhammad.com

Weekly Downloads

2024.10.27 - 2025.09.21

Architecture_CLI is a package designed to streamline the folder structure creation process

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

args, path

More

Packages that depend on architecture_cli