vis pm
Package manager utilities (cache, publish, audit, list, config, etc.)
vis pm
Pass-through to the detected package manager's miscellaneous subcommands — cache management, publishing, auditing, listing, config, identity. The first positional becomes the PM subcommand and everything after it is forwarded.
Usage
vis pm <subcommand> [args...]Examples
vis pm cache dir # show cache directory
vis pm cache clean # clean cache
vis pm publish --dry-run # preview publishing
vis pm list --depth 0 # list direct dependencies
vis pm audit # run security audit
vis pm whoami # show logged-in user
vis pm plugin list # yarn berry plugins (no-op on other PMs)Options
This command takes no flags of its own — every argument is forwarded to the resolved package manager. The PM is selected via the same precedence as vis install (CLI --installer > VIS_INSTALLER > install.backend > auto).
Cross-PM behavior
Some subcommands move between namespaces or were removed entirely depending on the PM. vis pm papers over the differences when there is a sensible substitution, and warns + exits 0 when there is not.
| Subcommand | Substitution |
|---|---|
whoami (pnpm 11) | falls back to npm whoami (pnpm 11 removed whoami) |
whoami (yarn berry) | rewrites to yarn npm whoami |
whoami (bun) | rewrites to bun pm whoami |
login / logout (yarn berry) | rewrites to yarn npm login / yarn npm logout |
login / logout (bun) | falls back to npm login / npm logout (bun reads ~/.npmrc) |
audit (yarn berry) | rewrites to yarn npm audit |
publish (yarn berry) | rewrites to yarn npm publish |
dist-tag (yarn 1) | rewrites to yarn tag |
dist-tag (yarn berry) | rewrites to yarn npm tag (and translates rm → remove) |
owner (pnpm 11 / yarn berry / bun) | falls back to npm owner |
ping / search / token (pnpm 11) | falls back to npm <sub> (pnpm 11 removed each) |
config delete (yarn berry) | rewrites to yarn config unset |
plugin (anything but yarn berry) | warn + exit 0 |
prune (yarn / bun / deno) | warn + exit 0 (pruning happens on install) |
rebuild (yarn 1 / bun / deno) | warn + exit 0 |
config (bun / deno) | warn + exit 0 (no config CLI; edit bunfig.toml / .npmrc / deno.json) |
Deno
Deno has no umbrella pm command, so vis maps the common subcommands to deno's nearest equivalents:
| Subcommand | Deno equivalent |
|---|---|
cache <dir> | deno info (cache management lives in --reload / DENO_DIR env) |
list | deno info |
pack | deno publish --dry-run |
view / info | deno info npm:<pkg> |
prune / rebuild | unsupported — vis emits a warning |