pnpm CLI

The pnpm command-line interface for managing JavaScript/Node.js packages. Provides commands for installing, updating, and removing dependencies; running package scripts; executing one-off packages via pnx (formerly dlx); publishing to registries; auditing for vulnerabilities; managing the content-addressable store; inspecting the dependency graph; and patching installed packages. As of pnpm 11, `pn` is a shorthand for `pnpm` and `pnx` replaces `pnpm dlx`.

API entry from apis.yml

apis.yml Raw ↑
aid: pnpm:pnpm-cli
name: pnpm CLI
tags:
- CLI
- Node.js
- Package Manager
- Dependency Management
humanURL: https://pnpm.io/pnpm-cli
properties:
- url: https://pnpm.io/pnpm-cli
  type: Documentation
- url: https://pnpm.io/cli/install
  name: pnpm install
  type: Documentation
- url: https://pnpm.io/cli/add
  name: pnpm add
  type: Documentation
- url: https://pnpm.io/cli/update
  name: pnpm update
  type: Documentation
- url: https://pnpm.io/cli/remove
  name: pnpm remove
  type: Documentation
- url: https://pnpm.io/cli/run
  name: pnpm run
  type: Documentation
- url: https://pnpm.io/cli/exec
  name: pnpm exec
  type: Documentation
- url: https://pnpm.io/cli/dlx
  name: pnpm dlx (pnx)
  type: Documentation
- url: https://pnpm.io/cli/publish
  name: pnpm publish
  type: Documentation
- url: https://pnpm.io/cli/audit
  name: pnpm audit
  type: Documentation
- url: https://pnpm.io/cli/store
  name: pnpm store
  type: Documentation
- url: https://pnpm.io/cli/list
  name: pnpm list
  type: Documentation
- url: https://pnpm.io/cli/why
  name: pnpm why
  type: Documentation
- url: https://pnpm.io/cli/outdated
  name: pnpm outdated
  type: Documentation
- url: https://pnpm.io/cli/patch
  name: pnpm patch
  type: Documentation
description: The pnpm command-line interface for managing JavaScript/Node.js packages. Provides commands
  for installing, updating, and removing dependencies; running package scripts; executing one-off packages
  via pnx (formerly dlx); publishing to registries; auditing for vulnerabilities; managing the content-addressable
  store; inspecting the dependency graph; and patching installed packages. As of pnpm 11, `pn` is a shorthand
  for `pnpm` and `pnx` replaces `pnpm dlx`.