ZVM-USE(1)
π ZVM-USE(1) β the one where you pick your Zig version
okay so this is a User Commands page, manual section 1, and it's literally all about zvm-use: selecting the active Zig version. bestie, let's go π
β¨ NAME β¨
zvm-use β select the active Zig version π
π¦ SYNOPSIS π¦
zvm use [--global] [version]
zvm use --sync
πΈ DESCRIPTION πΈ
So what this does is: it picks an installed Zig version and updates the executables that get exposed through ZVM's bin directory. slay. π
The version you give it can be exact, shorthand, or an alias β go check zvm(1) for the deets, iykyk. And if that version isn't installed yet? no worries, ZVM literally offers to install it first before selecting it. so generous of her π«Ά
Now here's the vibe check on shells: if you're in a shell that was set up with zvm-env(1) β that's the case where ZVM_MULTISHELL_PATH names a per-shell link β then only that shell's link gets changed and bin is left completely alone. main character shell energy, honestly. β¨
When you don't supply a version at all, ZVM tries to read .minimum_zig_version from build.zig.zon in the current project. it's giving "she read your mind" π
Oh, and one more thing β an installation can also be a link under the ZVM base directory pointing at a local Zig build that contains a zig or zig.exe executable. you can just use that directory name as the version argument. iconic. π
π OPTIONS π
--syncβ reads a//! zvm-lock:directive frombuild.zigin the current directory and selects its version. the selection follows the current shell's scope. and heads up bestie: when you combine it with--sync,--globalis ignored. π«₯-g,--globalβ changes the global default (~/.zvm/bin) even when you're in a shell set up withzvm-env(1). that shell keeps its own version until it runszvm useagain, no cap. and if there's no per-shell link at all? then--globalbehaves exactly like plainzvm use. same vibes, different name. π«
π₯ EXAMPLES π₯
zvm use 0.14.1
zvm use stable
zvm use --sync
zvm use --global 0.15.2
look at her go π§ four little lines, four little moods.
π SEE ALSO π
zvm(1), zvm-env(1), zvm-install(1), zvm-list(1), zvm-alias(1)
go read those too, they're all part of the friend group π
sign-off szn π this is ZVM v0.9.4, dated October 2026, and it's the ZVM-USE(1) page β thanks for coming to my TED talk, mwah ππΈ
π¦ where this page comes from
- nixpkgs unstable: zvm 0.9.4
- Copyright 2026 Tristan Isham. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms