A CLI tool to scaffold new Nylo Flutter projects.
dart pub global activate nylo_installernylo <command> [arguments]
Commands:
new <project_name> Create a new Nylo project
init Set up the Metro CLI alias
clean Run flutter clean and flutter pub get
--ios Deep clean iOS (remove Pods, re-run pod install)
--android Deep clean Android (run gradlew clean)
--all Deep clean both iOS and Android
metro <command> Run a metro command (e.g. make:model)
test Format and run Flutter tests
--no-format Skip formatting before running tests
--filter=<pattern> Filter tests by name
--coverage Collect code coverage
--path=<dir> Test directory path (default: test)
self-update Update nylo to the latest version
Options:
-h, --help Show usage information
-v, --version Show version
Create a new Nylo project:
nylo new my_appThis will:
- Clone the Nylo template
- Configure your project name across all platform files (Android, iOS, pubspec.yaml, .env)
- Install Flutter dependencies
Project names are automatically converted to snake_case.
Set up the Metro CLI alias for an existing Nylo project:
nylo initThis configures the metro command in your shell so you can use it from anywhere within your project.
Clean your Flutter project and reinstall dependencies:
nylo cleanThis runs:
flutter clean- Removes build artifactsflutter pub get- Reinstalls dependencies
Use platform flags for deep cleaning:
nylo clean --ios # Deep clean iOS (removes Pods, .symlinks, Podfile.lock, re-runs pod install)
nylo clean --android # Deep clean Android (runs gradlew clean)
nylo clean --all # Deep clean both iOS and AndroidFormat and run Flutter tests with pretty output:
nylo testOptions:
nylo test --no-format # Skip formatting before running tests
nylo test --filter "login" # Filter tests by name
nylo test --coverage # Collect code coverage
nylo test --path integration_test # Specify test directory
nylo test --filter "auth" --coverageRun metro commands without needing the metro alias:
nylo metro make:model User
nylo metro make:page HomePage
nylo metro make:controller HomeControllerThis runs dart run nylo_framework:main <command> behind the scenes.
Update nylo to the latest version from pub.dev:
nylo self-updateOnce Metro is set up via nylo init, you can generate files for your Nylo project:
metro make:page HomePage
metro make:controller HomeController
metro make:model User- Dart SDK >= 3.0.0
- Flutter
- Git