xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Flutter CLI commands All In One

Flutter CLI commands All In One

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h Repeat this help message.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).
An Observatory debugger and profiler on iPhone 11 is available at: http://127.0.0.1:64336/b2cmGx7w4tk=/

vm@ws://127.0.0.1:64336/b2cmGx7w4tk=/ws

$ flutter -h

$ flutter create awesome_flutter_app

# testing
$ flutter doctor

# multi devices
$ flutter devices

# iOS / Android
$ flutter run

# Android & iOS
$ flutter run -d all

# simulator / emulator
$ open -a Simulator

# upgrade
$ flutter upgrade


$ flutter channel

$ flutter upgrade

# stable, beta, dev, and master
$ flutter channel stable

$ flutter upgrade

China bug

# china & zsh
$ flutter packages get
$ flutter clean

build

$ flutter build

$ flutter build appbundle
# <app dir>/build/app/outputs/bundle/release/app.aab.

flutter lock bug ❌

Waiting for another flutter command to release the startup lock...

$ flutter doctor

Waiting for another flutter command to release the startup lock...

dart

$ ps -ef | grep flutter

# solution ✅
$ killall -9 dart

refs

kill

$ ps -ef | grep node
$ ps -ef | grep nginx
$ ps -ef | grep mongod

$ sudo kill -9 <PID>



©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


posted @ 2020-10-28 19:50  xgqfrms  阅读(222)  评论(2编辑  收藏  举报