⚡ Fast and simple zig version manager
zvm is a command-line tool that allows you to easily install, manage, and switch between multiple versions of Zig.
- List available Zig versions.
- Install specific Zig versions.
- Switch between installed Zig versions.
- Set a default Zig version.
To install zvm with Homebrew, aka. brew
, run the following commands:
brew tap hendriknielaender/zvm
brew install zvm
Now add this line to your ~/.bashrc
, ~/.profile
, or ~/.zshrc
file.
export PATH="$HOME/.zm/current/zig:$PATH"
irm https://raw.githubusercontent.com/hendriknielaender/zvm/master/install.ps1 | iex
powershell -c "irm https://raw.githubusercontent.com/hendriknielaender/zvm/master/install.ps1 | iex"
zvm list # List all available Zig versions
zvm install <version> # Install a specified Zig version
zvm use <version> # Switch to a specified Zig version for the current session
zvm default <version> # Set a specified version as the default
zvm current # Display the currently active Zig version
zvm --help # Displays help information
zvm --version # Display zvm version
Zig is in active development and the APIs can change frequently, making it challenging to support every dev build. This project currently aims to be compatible with stable, non-development builds to provide a consistent experience for the users.
Supported Version: As of now, zvm is tested and supported on Zig version 0.13.0.
Contributions, issues, and feature requests are welcome!
Please note that our project is not affiliated with ZVM maintained by @tristanisham. Both projects operate independently, and any similarities are coincidental.