mirror of
https://github.com/pnpm/pnpm.git
synced 2026-06-29 18:35:18 -04:00
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:
6
.changeset/install-help-arch-flags.md
Normal file
6
.changeset/install-help-arch-flags.md
Normal 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).
|
||||
@@ -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,
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user