← zig.onlZVM Docs

Switch Versions

zvm use <version>

Use use to switch between versions of Zig.

# Examples
zvm use master
zvm use stable     # highest non-dev, non-master release
zvm use 0.13       # shorthand; resolves to an installed 0.13.x

use resolves against versions already installed on your machine. If the version you want isn't there, install it first with zvm i. See Version Syntax for the full list of accepted forms.

Use a project's minimum Zig version

When called without a version, zvm use reads .minimum_zig_version from the current project's build.zig.zon:

zvm use

You can also place a ZVM lock directive in build.zig and apply it with --sync:

//! zvm-lock: 0.14.1
zvm use --sync

Both forms switch the active Zig symlink, just like an explicit zvm use <version>.