Back to Pnpm Io

pnpm store

versioned_docs_archived/version-2.x/cli/store.md

latest976 B
Original Source

Managing the package store.

Commands

status

Checks for modified packages in the store.

Returns exit code 0 if the content of the package is the same as it was at the time of unpacking.

add

Added in: v2.12.0

Functionally equivalent to pnpm add, except this adds new packages to the store directly without modifying any projects or files outside of the store.

prune

Removes orphan packages from the store.

Pruning the store will save disk space, however may slow down future installations involving pruned packages. Ultimately, it is a safe operation, however not recommended if you have orphaned packages from a package you intend to reinstall.

Please read the FAQ for more information on unreferenced packages and best practices.

Please note that this is prohibited when a store server is running.