Create ๐
Create a new Very Good project from a template with very_good create. Each
template type has a corresponding subcommand.
Usageโ
Creates a new Very Good project in the specified directory.
Usage: very_good create <subcommand> <project-name> [arguments]
-h, --help Print this usage information.
Available subcommands:
app_ui_package Generate a Very Good App UI package.
dart_cli Generate a Very Good Dart CLI application.
dart_package Generate a Very Good Dart package.
docs_site Generate a Very Good documentation site.
flame_game Generate a Very Good Flame game.
flutter_app Generate a Very Good Flutter application.
flutter_package Generate a Very Good Flutter package.
flutter_plugin Generate a Very Good Flutter plugin.
Run "very_good help" to see global options.
Use -o or --output-directory to specify a custom output directory for the
generated project.
Creating in the current directoryโ
Instead of specifying a project name, you can pass . to create the project
in your current directory. Very Good CLI derives the project name from your
current directory's basename. This works with every template subcommand.
For example, if your working directory is /home/user/my_flutter_app, the
following command creates a Flutter app named my_flutter_app in place:
# Create a Flutter app named after the current directory
very_good create flutter_app .
You can combine . with any other supported flags for that template:
# Create a Flutter app with a custom org name
very_good create flutter_app . --org "com.company"
# Create a Flutter app with a description
very_good create flutter_app . --desc "My production Flutter app"
# Create a publishable Dart package
very_good create dart_package . --desc "My Dart package" --publishable
# Create a Flutter plugin that supports specific platforms
very_good create flutter_plugin . --desc "My plugin" --platforms android,ios,web
You cannot combine . with --output-directory. Very Good CLI will exit with
an error if you specify both.
Available templatesโ
Each subcommand maps to a specific project template. For detailed usage options and examples, see the individual template pages:
- Flutter Starter App โ
flutter_app - Dart CLI โ
dart_cli - Dart Package โ
dart_package - Flutter Package โ
flutter_package - Flutter Federated Plugin โ
flutter_plugin - Flame Game โ
flame_game - App UI Package โ
app_ui_package - Docs Site โ
docs_site