diff --git a/.changeset/install-help-arch-flags.md b/.changeset/install-help-arch-flags.md new file mode 100644 index 0000000000..bc8d0d27d2 --- /dev/null +++ b/.changeset/install-help-arch-flags.md @@ -0,0 +1,6 @@ +--- +"@pnpm/installing.commands": patch +"pnpm": patch +--- + +Document the `--cpu`, `--os` and `--libc` flags in the output of `pnpm install --help`. These flags were already supported but were only documented on the website [#12359](https://github.com/pnpm/pnpm/issues/12359). diff --git a/installing/commands/src/install.ts b/installing/commands/src/install.ts index 254b9c9fcc..263f3b904c 100644 --- a/installing/commands/src/install.ts +++ b/installing/commands/src/install.ts @@ -288,6 +288,18 @@ Install all optionalDependencies even when they don\'t satisfy the current envir description: 'Re-runs resolution: useful for printing out peer dependency issues', name: '--resolution-only', }, + { + description: 'Override CPU architecture of native modules to install. Acceptable values are the same as the `cpu` field of `package.json` (from `process.arch`)', + name: '--cpu ', + }, + { + description: 'Override OS of native modules to install. Acceptable values are the same as the `os` field of `package.json` (from `process.platform`)', + name: '--os ', + }, + { + description: 'Override libc of native modules to install. Acceptable values are the same as the `libc` field of `package.json`', + name: '--libc ', + }, ...UNIVERSAL_OPTIONS, ], },