Official CLI tool for the Vortex framework - a Nuxt.js inspired framework for building Flutter applications with ease.
Vortex CLI helps you scaffold and manage your Vortex applications with simple commands for creating projects, pages, components, and more.
- Project Scaffolding: Create new Vortex projects with proper folder structure
- Page Generation: Generate stateless or stateful pages with proper routing
- Component Management: Create and register reusable components
- Automatic Route Registration: Automatically register and manage routes
- Dependency Management: Easily add or remove dependencies
dart pub global activate vortex_cli
<project_name>/
├── lib/ # Main application code
├── test/ # Unit and widget tests
├── pubspec.yaml # Project dependencies and configuration
└── vortex.config.js # Vortex configuration file
To create a new Vortex project, use the following command:
vortex create <project_name>
To install a package, use the following command:
vortex add <package_name>
To remove a package, use the following command:
vortex remove <package_name>
To update a package, use the following command:
vortex update <package_name>
To generate a new page, use the following command:
vortex page <page_name>
--stateless
: Generate a stateless page--stateful
: Generate a stateful page--dir
: Specify the directory to create the page in (default islib/pages
)--file
: Specify the file name to create the page in (default is<page_name>.dart
)
To create a new component, use the following command:
vortex component <component_name>
To generate components and pages, use the following command: Vortex application, use the following command:
vortex runner
--pages-dir
: Specify the directory to create the pages in (default islib/pages
)--verbose
: Enable verbose output
Contributions are welcome! Please open an issue or submit a pull request.
This project was inspired by the Nuxt.js framework.
If you encounter any issues, please open an issue on GitHub.
This project is licensed under the MIT License.