cvm
Documentation
GitHub
Reference

Command reference

Public CLI surface. Hidden resolvers used only by shell hooks are omitted.

Lifecycle

CommandAliasesDescription
cvm init <shell>Print hooks for bash, zsh, fish, or powershell.
cvm updateInstall the latest GitHub Release binary in place.
cvm create <env> [--anonymous] [--inherit] [--open]Create ~/.cvm/envs/<env>. Copies global credentials unless --anonymous. --inherit links skills + copies settings. --open launches Claude immediately.
cvm listlsList environments; mark the active one.
cvm use <env>activateActivate in the current shell (needs hooks). Clears auto-pin (CVM_AUTO).
cvm deactivateRestore global Claude config, prompt, and PATH.
cvm currentPrint active environment name.
cvm remove <env> [-y]rmDelete an environment. -y/--yes skips confirm.

Run & edit

CommandDescription
cvm edit [env]Open .env in $VISUAL/$EDITOR (default: active). Creates the file if missing.
cvm run <env> -- <cmd>Run a command with env context + bin/ on PATH; parent shell unchanged.
cvm open <env>Alias for cvm run <env> -- claude. Safe to parallelize.

Share

CommandDescription
cvm export [env] [-o file]Write YAML manifest (default env: active; default file: cvm.yaml). Never includes secret values.
cvm import <file> [-n name]Create/update an env from a manifest; blank .env placeholders for listed names.

create flags in depth

macOS note: credentials may live in the Keychain. If there is no .credentials.json file, create still succeeds but you may need to log in once per environment.