docs/pages/documentation/getting-started/installation.mdx
import { Tabs, Callout } from "nextra/components";
There are several ways to install FVM. Choose the method that best fits your development environment.
We recommend installing the Flutter SDK globally using the official installation guide here. This will be the main version of Flutter across your machine.
Use FVM to manage the Flutter SDK version for your projects.
You can download the standalone packages from the GitHub repo here.
<Tabs items={['macOS', 'Windows', 'Linux', 'Pub']}> <Tabs.Tab>
Install the latest version:
curl -fsSL https://fvm.app/install.sh | bash
Install a specific version:
curl -fsSL https://fvm.app/install.sh | bash -s -- <version>
Replace <version> with your desired FVM version (e.g., 3.2.1)
Install:
brew install fvm
Uninstall:
brew uninstall fvm
</Tabs.Tab> <Tabs.Tab>
Install FVM using Chocolatey from the command line or PowerShell:
choco install fvm
Uninstall:
choco uninstall fvm
</Tabs.Tab>
<Tabs.Tab>
Install the latest version:
curl -fsSL https://fvm.app/install.sh | bash
Install a specific version:
curl -fsSL https://fvm.app/install.sh | bash -s -- <version>
Replace <version> with your desired FVM version (e.g., 3.2.1)
For alternative installation methods, see the GitHub Releases page.
</Tabs.Tab>
<Tabs.Tab> You can also install FVM as a pub package.
<Callout type="warning"> This is not recommended if you plan on using FVM to manage your global Flutter install. </Callout>dart pub global activate fvm
Uninstall:
dart pub global deactivate fvm
</Tabs.Tab> </Tabs>
The install script (install.sh) supports several options:
curl -fsSL https://fvm.app/install.sh | bashcurl -fsSL https://fvm.app/install.sh | bash -s -- <version> (replace <version> with desired FVM version)FVM_INSTALL_DIR=<path> curl -fsSL https://fvm.app/install.sh | bash (absolute path under $HOME)./install.sh --help./install.sh --version| Platform | Architecture | Support |
|---|---|---|
| macOS | x64, arm64 | ✅ |
| Linux | x64, arm64, riscv64 | ✅ |
| Windows | x64 | ✅ (via PowerShell/Chocolatey) |
curl and tarThe install script prints instructions to add FVM to your shell PATH. For manual installations, add FVM to your PATH:
<Tabs items={['macOS/Linux (Install Script)', 'macOS/Linux (Pub)', 'Windows']}> <Tabs.Tab> The install script prints instructions to add FVM to your PATH. Add the following to your shell configuration:
~/.bashrc~/.zshrcfish_add_path "<install_dir>/bin"Add this line: export PATH="<install_dir>/bin:$PATH" (default install dir is $HOME/fvm)
To apply changes immediately: source ~/.zshrc (or your shell config file)
</Tabs.Tab> <Tabs.Tab> For pub installations, add to your shell profile:
export PATH="$PATH:$HOME/.pub-cache/bin"
</Tabs.Tab> <Tabs.Tab> Add to your PATH environment variable:
%USERPROFILE%\AppData\Local\Pub\Cache\bin
</Tabs.Tab> </Tabs>
Install Script:
curl -fsSL https://fvm.app/install.sh | bash -s -- --uninstall
Homebrew:
brew uninstall fvm
Chocolatey:
choco uninstall fvm
Pub:
dart pub global deactivate fvm
Remove cached Flutter versions (optional):
fvm destroy