/fvm

Flutter SDK Version Manager written in Go.

Primary LanguageGoGNU Lesser General Public License v3.0LGPL-3.0

Go FVM

Flutter SDK Version Manager written in Go.

badge-lang badge-lang

English | 简体中文

🍦 Features

  • Manage Multiple Flutter SDKs
  • Project Versioning
  • Portable - No need to install Flutter SDK to install fvm
  • Auto config PATH and IDE settings
  • Alias. e.g. fvm dart format . -> dart format .

💾 Uasge

  1. Install fvm through:
    • go install github.com/lollipopkit/fvm@latest (require Golang installed).
    • Download the latest release from HERE. Remember to add fvm to PATH.
  2. It's highly recommended to set env FVM_HOME. If you don't set FVM_HOME, fvm will use$HOME/.fvm as default.
  3. Run fvm install <version> to install flutter sdk.
  4. Set default global version by fvm global <version>.
  5. Enter project folder, run fvm use <version> to use flutter sdk only in this directory.
  6. (Optional) Config alias by fvm config alias. So, you can omit fvm and use dart or flutter in your terminal directly. eg. dart format . instead of fvm dart format ..

🔖 Attention

  • This tool is partly compatible with fvm-dart, but there are still some differences. You may need to reconfigure the environment as described above.
  • This tool is still in the early stage of development. If you encounter any problems, please submit an issue.

⚒️ CLI

NAME:
   fvm - Flutter Version Manager written in Go

USAGE:
   fvm [global options] command [command options] [arguments...]

COMMANDS:
   config, c   Config something
   dart, d     Proxy dart commands
   delete, D   Delete a specific version of Flutter
   flutter, f  Proxy flutter commands
   global, g   Manage global version of Flutter
   install, i  Install a specific version of Flutter
   list, l     List all installed versions of Flutter
   release, r  List all releases of Flutter
   use, u      Use a specific version of Flutter
   help, h     Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h  show help (default: false)

📝 License

lollipopkit LGPL-3.0