Skip to content

Switch Versions

Terminal window
zvm use <version>

Use use to switch between versions of Zig.

Terminal window
# 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.

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

Terminal window
zvm use

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

0.14.1
Terminal window
zvm use --sync

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