From 108dbd512c50cbb978db30594659c69006db5eab Mon Sep 17 00:00:00 2001 From: Ryo Matsukawa <76232929+ryo-manba@users.noreply.github.com> Date: Sun, 12 Oct 2025 16:04:26 +0900 Subject: [PATCH] docs: add `--registry` option to pnpm add command --- docs/cli/add.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/cli/add.md b/docs/cli/add.md index e0e95e160c1b..3d41f59d6cb7 100644 --- a/docs/cli/add.md +++ b/docs/cli/add.md @@ -260,6 +260,16 @@ pnpm --allow-build=esbuild add my-bundler This will run `esbuild`'s postinstall script and also add it to the `onlyBuiltDependencies` field of `pnpm-workspace.yaml`. So, `esbuild` will always be allowed to run its scripts in the future. +### --registry + +Specify the registry to use for this installation. + +Example: + +``` +pnpm add --registry=https://registry.npmjs.org/ lodash +``` + ### --filter <package_selector\> [Read more about filtering.](../filtering.md)