apkg info
The info command fetches and displays metadata for a package from the registry, including all published versions, dist-tags, maintainers, and timestamps.
Synopsis
Section titled “Synopsis”apkg info <package> [--json] [--registry <URL>]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
<package> | The package name to look up (e.g. @acme/code-reviewer) |
Options
Section titled “Options”| Option | Description |
|---|---|
--json | Output metadata as JSON |
--registry <URL> | Override the registry URL for this query |
Output
Section titled “Output”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"}Examples
Section titled “Examples”View info for a package:
apkg info @acme/code-reviewerGet metadata as JSON:
apkg info @acme/code-reviewer --jsonRelated commands
Section titled “Related commands”| Command | Description |
|---|---|
search | Search the registry for packages |
add | Add a package to your dependencies |