安装
brew tap leoafarias/fvm
brew install fvm
卸载
brew uninstall fvm
brew untap leoafarias/fvm
Different Flutter Repo#
You can use a different Flutter repo, a fork or as a local cache, by setting the FVM_GIT_CACHE
environment variable.
List config#
fvm config
Set cache path#
Location where Flutter SDK versions will be stored. If nothing is set, the default will be used.
fvm config --cache-path <CACHE_PATH>
Use#
Sets Flutter SDK Version you would like to use in a project. If version does not exist it will ask if you want to install.
Usage:
fvm use {version}
Option:
-h, --help Print this usage information.
-f, --force Skips Flutter project checks.
-p, --pin Pins latest release channel instead of channel itself.
--flavor Sets version for a project flavor
If you are starting a new project and plan on using fvm flutter create
you wil have to use the --force
flag
Install#
Installs Flutter SDK Version. Gives you the ability to install Flutter releases or channels.
Usage:
fvm install - # Installs version found in project config
fvm install {version} - # Installs specific version
Option:
-h, --help Print this usage information.
-s, --skip-setup Skips Flutter setup after install
Remove#
Removes Flutter SDK Version. Will impact any projects that depend on that version of the SDK.
Usage:
fvm remove {version}
Option:
-h, --help Print this usage information.
--force Skips version global check.
List#
Lists installed Flutter SDK Versions. Will also print the cache directory used by FVM.
Usage:
fvm list
Option:
-h, --help Print this usage information.
Releases#
View all Flutter SDK releases available for install.
Usage:
fvm releases
Option:
-h,
--help Print this usage information.
Doctor#
Shows information about environment, and project configuration.
Usage:
fvm doctor
Option:
-h, --help Print this usage information.