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
| Column | Meaning |
|---|---|
Package | The package id. |
Version | The resolved version. |
Hash | The first 8 characters of the SHA-256 of the .nupkg. |
Source | Which feed the package came from. |
Depth | 0 for direct dependencies; 1 for first-level transitive, etc. |
Path | The chain of parents that brought the package in. |
Options
| Flag | Effect |
|---|---|
--direct | Only show direct dependencies. |
--transitive | Only show transitive dependencies. |
--depth <n> | Limit to packages with depth ≤ n. |
--outdated | Show only packages with newer versions available. |
--json | Print as JSON instead of a table. |
--workspace | List 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
pcpm why <pkg>— for a single package.pcpm outdated— what could be updated.