apm view
Show local metadata for an installed package, or query package versions without cloning.
Synopsis
Section titled “Synopsis”apm view PACKAGE [FIELD] [OPTIONS]apm info is accepted as a hidden alias for backward compatibility.
Description
Section titled “Description”apm view has two modes, selected by the optional FIELD argument:
- No field — read installed package metadata from
apm_modules/(or~/.apm/apm_modules/with-g). Local-only; the package must be installed. versionsfield — query available versions. Git packages list remote tags and branches without requiring a local install. Registry packages list version and published-timestamp columns. See theapm view <package> versionssubcommand below for the full registry-routing precedence and escape-hatch details.
When PACKAGE matches the NAME@MARKETPLACE pattern, apm view resolves the plugin against the marketplace manifest and prints its entry (name, version, description, source, tags) instead of a Git repository view. This applies whether or not versions is passed.
See apm outdated to compare locked versions against remotes, and apm install to add a package to the manifest.
Subcommands
Section titled “Subcommands”apm view <package>
Section titled “apm view <package>”Reads metadata from the installed copy. Exits non-zero if apm_modules/ is missing or the package is not installed; on a missing package, prints the list of installed packages to help disambiguate.
Output includes: name, version, description, author, source, install path, lockfile ref and commit (when available), context-file counts (skills, prompts, instructions), workflow count, and hook count.
apm view <package> versions
Section titled “apm view <package> versions”Lists available versions for the package. Calls the remote — requires network access.
For git packages, output is a table with name, type (tag or branch), and short commit SHA. For registry packages, output is a version and published-timestamp table. Registry packages are identified by three signals checked in order: (1) the --registry [NAME] flag forces the registry path; (2) a source: registry entry in apm.lock.yaml routes the package to the registry that installed it; (3) a configured default registry causes plain shorthands (e.g., owner/repo) to route to the registry even without a lockfile entry — use a full git URL to override this. Private git repositories require GITHUB_APM_PAT; private registries use the registry token configured for that registry (see authentication).
Arguments
Section titled “Arguments”| Argument | Required | Description |
|---|---|---|
PACKAGE | yes | owner/repo, short repo name (installed only), or NAME@MARKETPLACE for a marketplace plugin |
FIELD | no | Field selector. Only versions is supported today |
Options
Section titled “Options”| Option | Description |
|---|---|
-g, --global | Inspect a package installed in user scope (~/.apm/apm_modules/) |
--registry [NAME] | List versions from a registry. Omit a value to use the lockfile entry or configured default; provide NAME to force a specific named registry. Only valid with the versions field. |
Examples
Section titled “Examples”Show metadata for an installed package:
apm view microsoft/apm-sample-packageShort-name lookup (resolves against apm_modules/):
apm view apm-sample-packageList git tags and branches without cloning:
apm view microsoft/apm-sample-package versionsList registry versions for an installed registry package:
apm view acme/web-skills versionsList versions from the configured default registry (for an unlocked shorthand):
apm view acme/web-skills versions --registryList versions from a specific named registry:
apm view acme/web-skills versions --registry my-registryForce the git path even when a default registry is configured:
apm view https://github.com/acme/web-skills versionsInspect a package installed at user scope:
apm view microsoft/apm-sample-package -gView a marketplace plugin’s manifest entry:
apm view code-review@acme-pluginsRelated
Section titled “Related”apm outdated— compare locked versions against remote tagsapm install— add a package toapm.ymland install it