pnpm outdated

Checks for outdated packages. The check can be limited to a subset of the installed packages by providing arguments (patterns are supported).

Examples:

  1. pnpm outdated
  2. pnpm outdated "*gulp-*" @babel/core

Options

--recursive, -r

Check for outdated dependencies in every package found in subdirectories, or in every workspace package when executed inside a workspace.

--filter <package_selector>

Read more about filtering.

--global, -g

List outdated global packages.

--long

Print details.

--format <format>

Added in: v7.15.0

  • Default: table
  • Type: table, list, json

Prints the outdtaed dependencies in the given format.

--compatible

Prints only versions that satisfy specifications in package.json.

--dev, -D

Checks only devDependencies.

--prod, -P

Checks only dependencies and optionalDependencies.

--no-optional

Doesn’t check optionalDependencies.