docs: document --cpu, --os and --libc flags in pnpm install --help (#12478)

These flags are already supported via rcOptionsTypes but were only
documented on the website, not in the CLI help output.

Close pnpm/pnpm#12359
This commit is contained in:
subaru
2026-06-18 06:20:15 +09:00
committed by GitHub
parent 83f06a6046
commit 223d060a0f
2 changed files with 18 additions and 0 deletions

View File

@@ -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).

View File

@@ -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 <arch>',
},
{
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 <os>',
},
{
description: 'Override libc of native modules to install. Acceptable values are the same as the `libc` field of `package.json`',
name: '--libc <libc>',
},
...UNIVERSAL_OPTIONS,
],
},