A polished, cross-platform Go version manager with a Charmbracelet-powered TUI.
- Install any Go release from go.dev
- Switch versions instantly (shims + env vars)
- Interactive searchable lists (Charmbracelet/bubbles)
- Per-version GOPATH (isolated
go installbinaries) - Shared module cache across versions
- Windows / macOS / Linux
go install github.com/osethoum/gvm@latestUnix/macOS:
curl -sSL https://raw.githubusercontent.com/oSethoum/gvm/main/install.sh | shWindows (PowerShell):
irm https://raw.githubusercontent.com/oSethoum/gvm/main/install.ps1 | iexgvm # interactive menu
gvm install [version] # install (interactive if omitted)
gvm use [version] # switch (interactive if omitted)
gvm list # searchable list of versions
gvm current # show active version
gvm available # browse available releases
gvm uninstall # remove a version
gvm env # print env vars
gvm move # move everything to a new folder (interactive browser)
gvm move D:\gvm # or pass the destination directly (--yes to skip confirm)
gvm init <shell> # shell integration (powershell|bash|zsh|fish)
gvm doctor # diagnose setup
gvm version # print version
gvm update # update gvm to the latest releasegvm install and gvm use add the shell integration to your profile
automatically (for example ~/.zshrc on macOS) if it is not already there.
You can also do it explicitly:
PowerShell:
gvm init powershell --install
. $PROFILEBash/Zsh:
gvm init zsh --install # or bash/fish
source ~/.zshrcgvm move relocates the whole gvm tree (versions, per-version GOPATHs, module
cache, download cache, shims, config and the active version). It copies into a
sibling staging folder with a progress bar, verifies the copy, and only then
swaps it into place and regenerates shims, the current link, GVM_ROOT in
your shell profile, and the Windows user environment (GOROOT, GOPATH,
GOBIN, GOMODCACHE and PATH). The gvm executable is copied into the new
tree as well and PATH entries are repointed at it.
Interrupting with Ctrl+C cancels the copy and removes the partial staging folder; the old directory and all env vars stay untouched. Stale staging folders from an interrupted run are cleaned up automatically next time.
With no argument, gvm move opens a folder browser:
up/down(orj/k) move through foldersenter/rightopens a folder,leftgoes to the parentvswitches to the volumes list on Windows (C:, D:, ...)suses the folder currently shown;qcancels
For scripts, use gvm move --dir /path/to/gvm --yes.
~/.gvm/
versions/<ver>/ # GOROOT (toolchain)
gopath/<ver>/ # GOPATH (bin, src, pkg) per version
modcache/ # shared module cache
shims/ # go/gofmt wrappers
active # active version
Projects can live anywhere with a go.mod — no need for GOPATH/src.
MIT