pnpm update [Package...]
Pnpm update updates packages to their latest version based on the specified range.
When used without arguments, updates all dependencies. You can use patterns to update specific dependencies
Arguments
Options
Name | Description |
---|
--recursive, -r | Concurrently runs update in all subdirectories with a package.json (excluding node_modules) |
--latest, -L | 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) |
--global | Update global packages |
-P, --save-prod | Only update packages in dependencies and optionalDependencies |
-D, --save-dev | Only update packages in devDependencies |
--no-optional | Don't update packages in optionalDependencies |
--interactive, -i | Show outdated dependencies and select which ones to update |
--workspace | Tries to link all packages from the workspace. Versions are updated to match the versions of packages inside the workspace.
If specific packages are updated, the command will fail if any of the updated dependencies are not found inside the workspace. For instance, the following command fails if express is not a workspace package: pnpm up -r --workspace express |
--filter <Filepath / Package> | Filtering allows you to restrict commands to specific subsets of packages.
pnpm supports a rich selector syntax for picking packages by name or by relation.
More details: https://pnpm.io/filtering |