Flutter 常用命令行
相关项目操作
flutter --version
flutter version
flutter -h或者flutter --help
flutter analyze
flutter build
flutter channel
flutter clean
flutter config
flutter create
flutter devices
flutter doctor
flutter drive
flutter format
flutter fuchsia_reload
flutter help
flutter install
flutter logs
flutter packages
flutter precache
flutter run
flutter screenshot
flutter stop
flutter test
flutter trace
flutter upgrade
相关模拟器操作
$ flutter run
$ flutter emulators
$ flutter emulators --launch
例如未启动模拟器列表:
Nexus_5X_API_28 • Nexus 5X • Google • Nexus 5X API 28
apple_ios_simulator • iOS Simulator • Apple
$ flutter emulators --launch Nexus_5X_API_28
$ flutter run -d all
$ flutter run -d例如模拟器列表:
Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator) xxx的 iPhone • 00008020-001838491169002E • ios • iOS 12.2
$ flutter run -d emulator-5554
$ flutter run -d 00008020-001838491169002E
$ flutter run -d all
$ r
$ R
$ q