Skip to docs content

scpm view

  • Usage: scpm view [FLAGS] <PACKAGE> [FIELD]
  • Aliases: info, show

Print package metadata from the registry

Arguments

<PACKAGE>

Package to view, optionally with a version or dist-tag.

Examples: lodash, lodash@4.17.21, react@next, express@^4.

[FIELD]

Dotted path into the version metadata to print.

Examples: version, dependencies, dist.tarball, maintainers.0.name. When omitted, prints a formatted summary.

Flags

--json

Print the full JSON of the selected version instead of the summary.

Mutually exclusive with field.

--fetch-retries <N>

Number of retry attempts for failed registry fetches.

Overrides fetchRetries / fetch-retries from .npmrc / scpm-workspace.yaml when set. Pair with --fetch-timeout to fail fast in scripted test runs.

--fetch-retry-factor <N>

Exponential backoff factor between retry attempts.

Overrides fetchRetryFactor / fetch-retry-factor from .npmrc / scpm-workspace.yaml when set. Integer-only — the underlying FetchPolicy.retry_factor is u32. Fractional values like 1.5 are rejected by clap.

--fetch-retry-maxtimeout <MS>

Upper bound (ms) on the computed retry backoff.

Overrides fetchRetryMaxtimeout / fetch-retry-maxtimeout from .npmrc / scpm-workspace.yaml when set.

--fetch-retry-mintimeout <MS>

Lower bound (ms) on the computed retry backoff.

Overrides fetchRetryMintimeout / fetch-retry-mintimeout from .npmrc / scpm-workspace.yaml when set.

--fetch-timeout <MS>

Per-request HTTP timeout in milliseconds.

Overrides fetchTimeout / fetch-timeout from .npmrc / scpm-workspace.yaml when set. Applied via reqwest's .timeout() so it covers headers + body together.

--registry <URL>

Override the default registry URL for this invocation.

Use this npm registry URL for package metadata, tarballs, audit requests, dist-tags, and registry writes.

Examples:

$ scpm view react react@18.3.1 | MIT | deps: 1 | versions: 2037 React is a JavaScript library for building user interfaces. https://react.dev/

keywords: react

dist .tarball: https://registry.npmjs.org/react/-/react-18.3.1.tgz .shasum: a0b2eb79... .integrity: sha512-...

A specific version

$ scpm view react@17.0.2

A single field

$ scpm view react version 18.3.1

$ scpm view react dist.tarball https://registry.npmjs.org/react/-/react-18.3.1.tgz

All versions ever published

$ scpm view react versions --json

Raw JSON for the resolved version

$ scpm view react@next --json