Back to Pnpm Io

pnpm update

versioned_docs_archived/version-4.x/pnpm-update.md

latest571 B
Original Source

pnpm update updates packages to their latest version based on the specified range.

tl;dr

CommandMeaning
pnpm upupdates all dependencies. Adheres ranges specified in package.json
pnpm up --latestupdates all dependencies. Ignores ranges specified in package.json
pnpm up foo@2updates foo to the latest v2

Options

--latest

Added in: v3.2.0

Ignores the version range specified in package.json. Instead, the version specified by the latest tag will be used (potentially upgrading the packages across major versions).