Skip to content

hendriknielaender/zvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zvm logo

⚡ Zig Version Manager (zvm)

⚡ 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.

Features

  • List available Zig versions.
  • Install specific Zig versions.
  • Switch between installed Zig versions.
  • Set a default Zig version.

Install

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"

Windows

PowerShell

irm https://raw.githubusercontent.com/hendriknielaender/zvm/master/install.ps1 | iex

Command Prompt

powershell -c "irm https://raw.githubusercontent.com/hendriknielaender/zvm/master/install.ps1 | iex"

Usage

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

Compatibility Notes

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.

Contributing

Contributions, issues, and feature requests are welcome!

Clarification

Please note that our project is not affiliated with ZVM maintained by @tristanisham. Both projects operate independently, and any similarities are coincidental.