Skip to content

apkg info

The info command fetches and displays metadata for a package from the registry, including all published versions, dist-tags, maintainers, and timestamps.

Terminal window
apkg info <package> [--json] [--registry <URL>]
ArgumentDescription
<package>The package name to look up (e.g. @acme/code-reviewer)
OptionDescription
--jsonOutput metadata as JSON
--registry <URL>Override the registry URL for this query

The default output includes:

  • Name and latest version
  • Description
  • Dist-tags — tagged versions like latest, beta, canary
  • Versions — all published versions, sorted newest first, with yanked status and publish date
  • Maintainers — usernames and roles
  • Timestamps — created and last updated dates

With --json, the output is a JSON object:

{
"name": "@acme/code-reviewer",
"description": "AI-powered code review",
"distTags": {
"latest": "1.2.0"
},
"versions": ["1.2.0", "1.1.0", "1.0.0"],
"maintainers": ["acme"],
"createdAt": "2025-06-01T12:00:00Z",
"updatedAt": "2025-09-15T08:30:00Z"
}

View info for a package:

Terminal window
apkg info @acme/code-reviewer

Get metadata as JSON:

Terminal window
apkg info @acme/code-reviewer --json
CommandDescription
searchSearch the registry for packages
addAdd a package to your dependencies