Vortex CLI
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.
Features
- 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
Installation
From pub.dev
dart pub global activate vortex_cli
Project Structure
<project_name>/
├── lib/ # Main application code
├── test/ # Unit and widget tests
├── pubspec.yaml # Project dependencies and configuration
└── vortex.config.js # Vortex configuration file
Project Scaffolding
To create a new Vortex project, use the following command:
vortex create <project_name>
Installing Packages
To install a package, use the following command:
vortex add <package_name>
Removing Packages
To remove a package, use the following command:
vortex remove <package_name>
Updating Packages
To update a package, use the following command:
vortex update <package_name>
Page Generation
To generate a new page, use the following command:
vortex page <page_name>
Options
--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
)
Component Management
To create a new component, use the following command:
vortex component <component_name>
Runner
To generate components and pages, use the following command: Vortex application, use the following command:
vortex runner
Options
--pages-dir
: Specify the directory to create the pages in (default islib/pages
)--verbose
: Enable verbose output
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
Credits
This project was inspired by the Nuxt.js framework.
Support
If you encounter any issues, please open an issue on GitHub.
Authors
License
This project is licensed under the MIT License.
Libraries
- commands/commands_list
- commands/functions/create/create_main
- commands/impl/args_mixin
- commands/impl/create/component/component
- commands/impl/create/middleware/middleware
- commands/impl/create/page/page
- commands/impl/create/project/project
- commands/impl/help/help
- commands/impl/index
- commands/impl/init/flutter/init
- commands/impl/init/flutter/init_vortex
- commands/impl/install/install
- commands/impl/install/install_flutterwind
- commands/impl/install/install_vortex
- commands/impl/remove/remove
- commands/impl/runner/runner
- commands/impl/runner/runner_component
- commands/impl/runner/runner_composable
- commands/impl/runner/runner_plugin
- commands/impl/update/update
- commands/impl/version/version
- commands/interface/command
- config/cli_config
- core/check_dev_version
- core/generator
- core/print_vortex_cli
- core/structure
- core/version_update
- exception/cli_exception
- exception/exception
- extension
- extensions/list
- extensions/string
- models/file_model
- samples/analysis_option
- samples/interface/sample_interface
- samples/page
- samples/vortex_main
- utils/create_list_directory
- utils/create_main
- utils/create_single_file
- utils/format_dart_file
- utils/logger
- utils/pub_dev_api
- utils/pubspec_lock
- utils/pubspec_utils
- utils/replace_to_relative_path
- utils/shell_utils
- utils/sort
- vortex_cli