CLI

  • doctor verifies that tool dependencies are met.
  • create [-a ANDROID_LANG] [-i IOS_LANG] [-t TEMPLATE] <path> initialises a new Flutter project in the specified directory. Optional arguments:
    • -a sets the Android language:
      • java
      • kotlin
    • -i sets the iOS language:
      • swift
      • objc
    • -t optionally of the specified template:
    • flutter_plugin
    • package
  • clean removes build artifacts.
  • devices lists available devices.
  • run [-d DEVICE] builds and runs the app, optionally on the specified device. Common devices are:
    • all
    • android
    • ios
    • macos
  • analyze lints code to identify smells.
  • logs [-d DEVICE] pulls logs from the device or emulator, optionally from the specified device.
  • pub runs the Dart package manager.