Useful Commands

Flutter

CommandDescription
flutter create my_appCreate an App
flutter analyze -d <DEVICE_ID>Analyze the Dart Code
flutter run <DART_FILE>Run a Dart file
flutter pub getDownload Dependencies/Packages
flutter pub updateUpdate Flutter packages
flutter --help --verboseGet Help
flutter doctorCheck Project Health
flutter versionCheck Version
flutter channel <CHANNEL_NAME>Check Channels
flutter build Build the Project
flutter devices -d <DEVICE_ID>List Connected Devices
flutter upgradeUpgrade Flutter Version
flutter assemble -o Get necessary Packages for Project
flutter downgradeDowngrade Flutter/Dart SDKs
flutter emulatorsList available Emulators
flutter install -d <DEVICE_IDInstall Flutter App on a Device
flutter logsView Terminal logs