Skip to docs content

scpm licenses

  • Usage: scpm licenses [FLAGS]

Report the licenses of installed dependencies

Flags

-D --dev

Show only devDependencies

--json

Emit a JSON array keyed by package instead of the default table

--long

Include the resolved path on disk for each package

-P --prod

Show only production dependencies (skip devDependencies)

--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 licenses ├─ Apache-2.0 │ └─ typescript@5.4.5 ├─ ISC │ └─ semver@7.6.0 └─ MIT ├─ express@4.19.2 ├─ lodash@4.17.21 └─ zod@3.23.8

Only production deps

$ scpm licenses --prod

Include each package's store path

$ scpm licenses --long

JSON array, one object per package

$ scpm licenses --json