Forrest logo
back to the pnpm tool

pnpm:tldr:9643a

pnpm: List top-level [g]lobally installed modules.
$ pnpm list -g --depth=${0}
try on your machine

The command 'pnpm list -g --depth=${0}' is a command used with the package manager called pnpm.

Here is an explanation of each part of the command:

  • 'pnpm list': This command is used to list all the packages installed by pnpm.

  • '-g': This option specifies that we want to list globally installed packages. These are the packages installed system-wide rather than specific to a particular project.

  • '--depth=${0}': '--depth' is an option that specifies the depth of the dependency tree that should be shown in the output. The variable '${0}' is used to indicate that the depth should be equal to the value passed as an argument when running this command.

Overall, this command will list all the globally installed packages using pnpm and display the dependency tree with a depth equal to the value passed as an argument to the command.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pnpm tool