flutter fmv
fmv – flutter version management: a simple cli to manage flutter sdk versions.
why not use flutter channels?
if all you want is to use the latest stable version or a specific channel once in a while, you should be using flutter channels.
this tool allows you similar functionality to channels; however it caches those versions locally, so you don’t have to wait for a full setup every time you want to switch versions.
also, it allows you to grab versions by a specific tag, i.e. 1.2.0. in case you have projects in different flutter sdk versions and do not want to upgrade.
use fmv instead
easiest way npm & yarn
this is a very simple way to get started with fvm.
npm install -g fvm
# or
yarn global add fvm
# and
fvm stable
binary installation
download a compatible binary for your system. for convenience, place fvm
in a directory where you can access it from the command line. usually this is /usr/local/bin
.
for more detailed instructions check out installation
via go
if you want, you can also get fvm
via go:
$ go get -u github.com/leoafarias/fvm
$ cd $gopath/src/github.com/leoafarias/fvm
$ go install .
usage
installing and activating releases/channels
use fvm <version>
to install and activate a version of flutter.
$ fvm 1.2.1
$ fvm 0.11.13
$ fvm stable
$ fvm beta
if <version>
has already been installed, fvm
will activate it from cache without having to download and set up again.
lists all currently installed versions
$ fvm
v1.2.1
> v0.11.13
master
stable
use fvm <channel>
to install and activate a particular flutter channel.
user or install the latest stable
release
$ fvm stable
user or install the latest beta
release
$ fvm beta
user or install the latest fully-tested build
$ fvm dev
user or intall the latest cutting edge build
$ fvm master
releases
see all available releases for download
$ fvm releases
removing versions
removes a specific version
$ fvm remove <version>
removes all flutter versions except the active one
$ fvm shake
Comments are closed.