pnpm list
Aliases: ls
This command will output all the versions of packages that are installed, as well as their dependencies, in a tree-structure.
Positional arguments are name-pattern@version-range
identifiers, which will
limit the results to only the packages named. For example,
pnpm list "babel-*" "eslint-*" semver@5
.
Options
--recursive, -r
Perform command on every package in subdirectories or on every workspace package, when executed inside a workspace.
--json
Log output in JSON format.