Help & Version
Print program help
Print global help information by running:
zvm --helpPrint help information about a specific command or subcommand.
zvm list --helpNAME:
zvm list - list installed Zig versions. Flag `--all` to see remote options
USAGE:
zvm list [command options] [arguments...]
OPTIONS:
--all, -a list remote Zig versions available for download, based on your version map (default: false)
--vmu list set version maps (default: false)
--help, -h show helpPrint program version
zvm --version
zvm version # same output — added in v0.8.19Both forms print the version of ZVM you have installed. The version
subcommand was added for tooling and shells that parse subcommands but not
global flags.
Shell Completion
ZVM can emit a completion script for bash, zsh, fish, or pwsh
(PowerShell). The script is generated from ZVM's live command tree, so it
always reflects the commands and flags of the zvm binary you ran it with.
zvm completion bash
zvm completion zsh
zvm completion fish
zvm completion pwshBash
Source the script for the current session:
source <(zvm completion bash)To load it on every new shell, write it to bash-completion's load path:
zvm completion bash > /etc/bash_completion.d/zvm # system-wide
# or for a single user:
zvm completion bash > ~/.local/share/bash-completion/completions/zvmZsh
Place the script somewhere on your $fpath as _zvm. Pick a user-writable
directory so you don't need sudo:
# Plain zsh — create a user completions dir and add it to $fpath in ~/.zshrc:
mkdir -p ~/.zsh/completions
zvm completion zsh > ~/.zsh/completions/_zvm
# Then in ~/.zshrc (before `compinit`):
fpath=(~/.zsh/completions $fpath)If you use Oh My Zsh, drop it into the custom completions
directory instead — Oh My Zsh adds it to $fpath automatically:
mkdir -p ~/.oh-my-zsh/custom/completions
zvm completion zsh > ~/.oh-my-zsh/custom/completions/_zvmThen ensure compinit is running in your ~/.zshrc (Oh My Zsh already does
this for you):
autoload -Uz compinit && compinitFish
zvm completion fish > ~/.config/fish/completions/zvm.fishFish picks this up automatically on the next shell.
PowerShell
zvm completion pwsh > $HOME/.zvm/zvm.ps1Then dot-source the file from your PowerShell profile ($PROFILE):
. "$HOME/.zvm/zvm.ps1"