Complete Command Reference
Every command supported by avm-cli with real usage patterns.
avm init
Initializes an .avm.json configuration file and adds .avm.local.json to .gitignore in the current working directory.
✓ Created .avm.json in current directory
avm add
[--global] <alias> <command>Adds an executable alias to local or global .avm.json configuration.
✓ Added local alias 'dev'
avm remove
[--global] <alias>Removes an alias from the configuration file.
✓ Removed local alias 'dev'
avm list
Displays all merged aliases, environment variables, tools, and plugin commands in effect.
Aliases: dev pnpm run dev (local) release npm run release $1 (global) Tools: node 22.14.0 (local) java 17.0.13+11 (global) Env: NODE_ENV development
avm which
<alias-or-tool>Shows the exact file an alias or tool version comes from, including parent configs, profiles, personal overrides, and version files (.nvmrc, .tool-versions, …).
tool 'node': 22.14.0 (from ./.nvmrc)
avm trust
[path] [--revoke | --list]Trusts this project's .avm.json and .env so their aliases and env apply. It shows what it enables; editing the file outside avm blocks it again until re-trusted.
alias dev → pnpm run dev env NODE_ENV=development ✓ Trusted ~/code/my-app/.avm.json
avm <alias>
[args...]Executes a configured project alias or package.json script directly with injected environment and tools.
avm resolve
<alias> [args...]Expands and prints the exact shell command that would be executed.
avm exec
[--no-install] <tool@version>... -- <command> [args...]Runs a command with temporary tool versions (also: avm x), provider env and trusted project env. Installs missing versions without changing pins or lockfiles; --no-install selects installed versions only. Plugins must already be installed.
avm run
<alias> [--with <tool@version>]... [--no-install] [-- args...]Runs an alias, optionally with temporary tool versions. Repeat --with for multiple tools and place options before alias arguments. Missing versions install automatically unless --no-install is set.
avm install
[--frozen]Installs project tools without changing pins, including global selections only when unlocked. Uses exact versions and verified downloads when .avm.lock exists. --frozen validates project selections and requires an asset for this platform.
avm lock
[--platform linux_amd64,darwin_arm64,windows_amd64]Locks project selections, excluding personal global pins, with exact versions, plugin identities and per-platform SHA-256 checksums. Requires updated native Node or Java plugins; Android and asdf support unlocked installs only.
avm env
[--shell sh|pwsh|cmd] [--env <profiles>]Prints shell statements for merged env and provider vars (JAVA_HOME, ANDROID_HOME, …). Loads parent configs, then nearest-directory base, profiles (AVM_ENV=ci,staging or --env ci,staging; later names win), and .avm.local.json overrides. Restores original values when leaving a project. Shell setup refreshes at prompts, on zsh directory changes, and around avm commands.
$env:NODE_ENV = 'development' $env:JAVA_HOME = 'C:\Users\dev\.avm\tools\java\openjdk-17.0.13+11'
avm env add
[-g] <KEY> <value>Adds an env var to local (or global with -g) .avm.json. Also avm ea. See env remove and env list for other operations.
✓ Added local env var 'NODE_ENV=development'
avm plugin add
<name | org/repo | git-url | path>Installs a plugin's compiled release for your platform from the marketplace, after verifying its sha256 against the release's checksums.txt. A mismatch aborts with nothing installed. Also avm pa. Legacy asdf plugins use the compatibility adapter.
Fetching 'node' from PrajaNova/avm-plugin-node... ✓ Installed node v0.2.0
avm plugin list
[--all]Lists installed plugins and their discovery paths. --all also prints marketplace plugins.
Installed plugins: - node (~/.avm/plugins/avm-plugin-node/bin/avm-plugin) - java (~/.avm/plugins/avm-plugin-java/bin/avm-plugin) - android (~/.avm/plugins/avm-plugin-android/bin/avm-plugin)
avm plugin available
Queries the marketplace registry and lists all installable plugins. Also avm plugin all or avm plugin marketplace.
avm plugin remove
<name>Uninstalls an installed plugin binary from ~/.avm/plugins.
avm plugin update
<name> | --allChecks for newer releases of the plugin and updates the binary.
avm <plugin> versions
Lists installable upstream versions for a plugin (e.g. node, java, android).
avm <plugin> <filter> versions
Filters available versions by major line or query.
avm <plugin> latest versions
Shows the latest upstream version available for installation.
avm <plugin> use
<version> [--global]Sets the active version in local .avm.json (or global ~/.avm.json with --global).
avm <plugin> install
<version> [--global | --no-pin]Installs a runtime and pins it locally, also setting a global pin if none exists. --global pins globally only; --no-pin installs without changing pins. Fuzzy versions resolve before installation.
avm <plugin> uninstall
<version>Removes an installed runtime version from ~/.avm/tools/.
avm shell-init
[sh | pwsh]Prints the shell hook that puts shims on PATH and applies env after each avm call (bash/zsh by default, or PowerShell).
avm shims install
Regenerates shims for all managed tools in ~/.avm/shims.
avm shims path
Prints the absolute path to the avm shims directory.
~/.avm/shims
avm --version
Print the installed CLI version; -v is the short form.
avm alias add
[-g] <key> <command...>Add a local or global alias. Equivalent to avm add (also avm aa).
avm alias remove
[-g] <key>Remove an alias. Also avm alias rm, avm remove and avm rm.
avm alias list
List merged configured aliases. Also avm alias ls; avm list has the shortcut avm ls.
avm env remove
[-g] <key>Remove a configured variable from the local or global base config. Also avm env rm.
avm env list
List merged configured environment values; use bare avm env for provider variables and shell exports. Also avm env ls.
avm outdated
[--json]Show current runtime selections, newest releases within the selected range and overall, and pin sources.
avm upgrade
[tools...] [--bump] [--dry-run] [-y]Install newer versions within each pin range and update editable base pins. --bump allows major changes and asks for confirmation; -y confirms. Inherited/profile/version-file pins are kept at their source. Regenerate locks after pin changes.
avm prune
[--older-than 90d] [--include-unrecorded] [--dry-run] [-y]Remove versions unused by global pins or tracked projects. Preview first. --include-unrecorded considers versions without usage records; -y confirms deletion.
avm self-update
[--version <version>]Update direct installations with checksum verification. For package-manager installations, print the matching upgrade command.
avm plugin outdated
[--json]Compare installed marketplace plugin versions against available releases.
avm create
<name>Print instructions to create a plugin from the official template. Does not create or publish the repository automatically.
avm <plugin>
Open the interactive provider menu in a terminal; show status when interactive input is unavailable.
avm <plugin> list
Show selected and installed versions. Also avm <plugin> ls. versions has the alias available, and use has the alias set.
avm shims activate
Add the shim directory to Unix shell startup files (.zshenv, .bashrc, .profile). On Windows, add the output of shims path to user PATH separately.
avm shims remove
<tool>Remove one shim without uninstalling its runtime. Regenerate with shims install (also shims reshim).
avm android avd list
List Android Virtual Devices using the selected installed Android SDK. Also avd ls.
avm android avd create
[name] [--api <level>] [--device <id>]Create an AVD interactively or supply name, API and device for scripting. Automatically install its matching system image in the selected SDK; device type selects the appropriate phone/TV/Wear/Automotive image tag. Also avd new.
avm android avd start
<name> [emulator args...]Launch an AVD with the selected SDK emulator. Additional arguments are forwarded. Also avd run.
avm android avd delete
<name>Delete an AVD using the selected SDK. Also avd remove or avd rm.
avm --help or avm <command> --help. Use avm --env ci <command> to select profiles for one invocation.