Skip to content

Command Reference ​

Run vmr --help or vmr <command> --help for built-in help. In the examples, sdk@version is a version specification; available SDKs and versions depend on the plugin and platform.

CommandAliasesPurpose
vmr versionvShow version information.
vmr init [shell]Print shell integration for bash, zsh, fish, or PowerShell.
vmr template [kind] [-d DIR]Print a Lua plugin template (github, html, json, or pixi), or write it to a directory.
vmr plugins [-u]List plugins and supported SDKs; -u / --update-all refreshes plugins first.
vmr search [sdk] [-p] [-n]sList available versions; -p / --pixi queries conda-forge, -n / --no-cache refreshes the list.
vmr local [sdk] [-c]lList installed versions, optionally only current versions with -c / --current.
vmr use [sdk@version]u, hInstall and switch globally.
vmr use -s sdk@versionInstall and switch in a session (--session).
vmr use -l sdk@versionWrite .vmr.lock and enter a session (--lock).
vmr use -p sdk@versionInstall with the pixi conda-forge backend (--pixi).
vmr use -f FILEInstall every entry in a manifest (--file); cannot be combined with a spec, -s, -l, or -p.
vmr freeze [FILE]fzExport installed versions; defaults to vmr_<YYYYMMDD>.txt.
vmr migrate [MAP] --asdfExport asdf versions to migration_from_asdf.txt.
vmr migrate [MAP] --vfoxExport vfox versions to migration_from_vfox.txt.
vmr migrate [MAP] --systemProbe system commands and export migration_from_system.txt.
vmr uninstall sdk@versionuni, rRemove a version; use sdk@all to remove all versions of an SDK.
vmr sessionseReport whether the current shell is in a vmr session.
vmr nestednsToggle permission for nested sessions.
vmr cdhookcd-hookInternal directory hook: apply project pins and offer to install missing versions.
vmr doctorDiagnose integration, environment, PATH, and version links.
vmr mcpServe the Model Context Protocol over stdio.

--conda is also accepted as an alias for --pixi on search and use. Migration only writes manifests; it does not install versions. An optional mapping file specifies one <source> <vmr-sdk> pair per line and replaces the default mappings. See the tutorial for examples.

vmr doctor accepts --json, --quiet, --strict (exit 1 on warnings), --no-emoji, and --shell followed by bash, zsh, fish, or powershell. Learn about plugin authoring under plugins.