/fvm

🗼Flutter SDK versions Manager

Primary LanguageShellMIT LicenseMIT

fvm

MIT Licence

README English | 中文

Flutter SDK versions Manager

Installation

  1. First, add homebrew's tap:
brew tap dashixiong91/fvm
  1. Once the tap has added, you can install fvm
brew install fvm
  1. Copy the following content in to your .bashrc|.zshrc ... file
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export FVM_DIR="$HOME/.fvm"
source "/usr/local/opt/fvm/init.sh"

export PATH="$PATH:$FVM_DIR/current/bin/"
export PATH="$PATH:$FVM_DIR/current/bin/cache/dart-sdk/bin"

Usage

Print fvm command help info

fvm
# or `fvm --help`

Install Flutter,take 1.9.1 as an example

fvm install 1.9.1

Use Flutter installed above

fvm use 1.9.1

Set aliases

fvm alias latest 1.9.1

List all installed versions

fvm list

List published versions

fvm list-remote all

Preview

terminal