Back to Pnpm

Options

pacquet/crates/cli/README.md

11.1.33.8 KB
Original Source

Options

pnpm documentation

DoneCommandNotes
-C <path>, --dir <path>
-w, --workspace-root

Manage dependencies

pacquet add <pkg>

pnpm documentation

  • [~] Install from npm registry
    • Install with tags are not supported. Example: pacquet add fastify@latest
  • Install from the workspace
  • Install from local file system
  • Install from remote tarball
  • Install from Git repository
DoneCommandNotes
--save-prod
--save-dev
--save-optional
--save-exact
--save-peer
--ignore-workspace-root-check
--global
--workspace
--filter <package_selector>

pacquet install

pnpm documentation

DoneCommandNotes
--force
--offlineFrozen-install only: refuses network fetches; errors with ERR_PACQUET_NO_OFFLINE_TARBALL when a snapshot isn't cached. Stage 2 resolver will additionally gate metadata fetches like upstream's pickPackage.
--prefer-offlineNo-op on frozen-install (warm prefetch already prefers the local store). Reserved for Stage 2's resolver.
--prod
--dev
--no-optional
--lockfile-only
--fix-lockfile
--frozen-lockfile
--reporter=<name>
--use-store-server
--shamefully-hoist
--ignore-scripts
--filter <package_selector>
--resolution-only

Run scripts

pacquet run

pnpm documentation

DoneCommandNotes
script-shell
shell-emulator
--recursive
--if-present
--parallel
--stream
--aggregate-output
enable-pre-post-scripts
--resume-from <package_name>
--report-summary
--filter <package_selector>

pacquet test

pnpm documentation

pacquet start

pnpm documentation

Misc.

pacquet store

pnpm documentation

DoneCommandNotes
status
add
~pruneCurrently prune removes all packages inside the directory
path

pacquet init

pnpm documentation