Flutter Commands
·1 min
Table of Contents
Create new project #
$ flutter create <project-name>
Create new project with organization identifier #
$ flutter create --org <com.example> <project-name>
Run program #
Runs the main program. example: flutter run lib/main.dart
$ flutter run <dart_file>
Analyze #
$ flutter analyze
Run tests #
$ flutter test
Pub commands #
$ flutter pub get <package>
$ flutter pub outdated
$ flutter pub upgrade
Check version #
$ flutter --version
Create APK or App Bundle build #
$ flutter build apk
$ flutter build apk --split-per-abi
$ flutter build appbundle