Aim for the cock
preface
There are a lot of commands. Only the frequently used ones are recorded. The following commands will be updated in time
Part with the help of translation software, mo bar, welcome to correct questions ~
I used to watch A chicken play command line, and I was all over my god, 666.
Now that Flutter is starting up again, it will also try to master a wave of command line play, just in case you can show the rooster a wave someday
Expect chicken boss to me 666 ~
Summary of Common Commands
If you’re not familiar with it, or if you can’t remember a useful command, consult the help manual:
- flutter -h
With equal to:
- flutter –help
To view detailed logs about the execution of a command, you can use -v or –verbose, for example:
- flutter help -v
With equal to:
- flutter help –verbose
Android Studio Tools also lists some of the most common commands:
There’s also a killer:
- killall -9 dart
Dart: Dart dart: Dart dart dart dart dart dart dart dart dart dart dart dart dart dart dart dart dart dart dart
I. Basic operation of Flutter
1.1 Detect the Flutter development environment
- flutter doctor
1.2 Updated Versions
- flutter upgrade
1.3 Forcing an Update
- flutter upgrade –force
1.4 Managing the Flutter Software Package
- flutter pub
- Cache: The system pub is used to cache packets.
- Deps: Prints dependencies of dependency packages.
- Downgrade: Uses Flutter downgrade packs.
- Get: Obtains the Flutter software package.
- Global: Uses the PUB global package.
- Outdated: Analyze and prompt for currently upgradable dependencies.
- Pub: Pass the remaining parameters to Dart’s PUB tool.
- Publish: Publishes the current package to pub.dev.
- Run: Runs the package to the executable.
- Test: Runs the test package.
- Upgrade: Upgrade packages in Flutter.
- Uploader: Uploader that manages software packages on pub.dev.
- Version: Obtain the PUB version.
1.5 List the Flutter versions
- flutter version
1.6 This section lists connected devices
- flutter devices
1.7 Running software on the device
- flutter run
1.8 List Flutter channels
- flutter channel
1.9 Delete the build and.dart_tool directories
- flutter clean
2.0 Displays the log output of running the Flutter application
- flutter logs
Ii. Related to the Flutter project
2.1 Creating a Project
- Flutter CREATE [project name]
2.2 Creating a Project and Exporting logs
- Flutter create [project name] -v
2.3 Run the Flutter test
- flutter test
2.4 build Flutter
- flutter assemble
2.5 Measuring the Application Startup time
- flutter run –trace-startup –profile
2.6 Obtaining screenshots of connected Devices
- flutter screenshot
3, Flutter packaging related
3.1 Building corresponding packages
- flutter build
- Aar: Create a repository containing AAR and POM files.
- Aot: Builds a pre-compiled snapshot of the application’s Dart code.
- Apk: Build the Android APK file.
- Appbundle: Build an Android App Bundle.
- Bundle: Build the Flutter resource directory.
- Ios: Build ios applications (for Mac OS X hosts only).
- Ios-framework: Generate.framework directories for the Flutter modules and their plug-ins to integrate into existing normal Xcode projects.
3.2 Packaging enables confusing Android
- Flutter build apk –obfuscate –split-debug-info=[saved address]
3.3 Specify to build the CPU architecture package Android
- Flutter build apk –obfuscate –split-debug-info=[save address] –target-platform android-arm, Android-arm64, Android-x64 –split-per-abi
Thanks
- Flutter Chinese Community