ZVM-USE(1)

πŸ“¦ version 0.9.4, in nixpkgs unstable

πŸ’… 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 from build.zig in 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, --global is ignored. πŸ«₯
  • -g, --global β€” changes the global default (~/.zvm/bin) even when you're in a shell set up with zvm-env(1). that shell keeps its own version until it runs zvm use again, no cap. and if there's no per-shell link at all? then --global behaves exactly like plain zvm 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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms