en

pcpm list

Pretty-print pcpm.lock as a table.

pcpm list [options]

pcpm list reads pcpm.lock and prints the resolved graph as a Spectre.Console table. Direct dependencies are highlighted; transitive ones are shown with an indent and a chain of parent references.

Columns

ColumnMeaning
PackageThe package id.
VersionThe resolved version.
HashThe first 8 characters of the SHA-256 of the .nupkg.
SourceWhich feed the package came from.
Depth0 for direct dependencies; 1 for first-level transitive, etc.
PathThe chain of parents that brought the package in.

Options

FlagEffect
--directOnly show direct dependencies.
--transitiveOnly show transitive dependencies.
--depth <n>Limit to packages with depth ≤ n.
--outdatedShow only packages with newer versions available.
--jsonPrint as JSON instead of a table.
--workspaceList every project and its references (in monorepos).

Examples

# The full lockfile
pcpm list

# Only direct dependencies
pcpm list --direct

# A machine-readable snapshot, for diffing in CI
pcpm list --json > pcpm-snapshot.json

See also