| 1 |
/* IMPORTANT |
| 2 |
* This snapshot file is auto-generated, but designed for humans. |
| 3 |
* It should be checked into source control and tracked carefully. |
| 4 |
* Re-generate by setting TAP_SNAPSHOT=1 and running tests. |
| 5 |
* Make sure to inspect the output below. Do not ignore changes! |
| 6 |
*/ |
| 7 |
'use strict' |
| 8 |
exports[`test/lib/docs.js TAP basic usage > must match snapshot 1`] = ` |
| 9 |
npm <command> |
| 10 |
|
| 11 |
Usage: |
| 12 |
|
| 13 |
npm install install all the dependencies in your project |
| 14 |
npm install <foo> add the <foo> dependency to your project |
| 15 |
npm test run this project's tests |
| 16 |
npm run <foo> run the script named <foo> |
| 17 |
npm <command> -h quick help on <command> |
| 18 |
npm -l display usage info for all commands |
| 19 |
npm help <term> search for help on <term> |
| 20 |
npm help npm more involved overview |
| 21 |
|
| 22 |
All commands: |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
Specify configs in the ini-formatted file: |
| 27 |
{USERCONFIG} |
| 28 |
or on the command line via: npm <command> --key=value |
| 29 |
|
| 30 |
More configuration info: npm help config |
| 31 |
Configuration fields: npm help 7 config |
| 32 |
|
| 33 |
npm@{VERSION} {BASEDIR} |
| 34 |
` |
| 35 |
|
| 36 |
exports[`test/lib/docs.js TAP command list > aliases 1`] = ` |
| 37 |
Object { |
| 38 |
"add": "install", |
| 39 |
"add-user": "adduser", |
| 40 |
"author": "owner", |
| 41 |
"c": "config", |
| 42 |
"cit": "install-ci-test", |
| 43 |
"clean-install": "ci", |
| 44 |
"clean-install-test": "install-ci-test", |
| 45 |
"create": "init", |
| 46 |
"ddp": "dedupe", |
| 47 |
"dist-tags": "dist-tag", |
| 48 |
"find": "search", |
| 49 |
"hlep": "help", |
| 50 |
"home": "docs", |
| 51 |
"i": "install", |
| 52 |
"ic": "ci", |
| 53 |
"in": "install", |
| 54 |
"info": "view", |
| 55 |
"innit": "init", |
| 56 |
"ins": "install", |
| 57 |
"inst": "install", |
| 58 |
"insta": "install", |
| 59 |
"instal": "install", |
| 60 |
"install-clean": "ci", |
| 61 |
"isnt": "install", |
| 62 |
"isnta": "install", |
| 63 |
"isntal": "install", |
| 64 |
"isntall": "install", |
| 65 |
"isntall-clean": "ci", |
| 66 |
"issues": "bugs", |
| 67 |
"it": "install-test", |
| 68 |
"la": "ll", |
| 69 |
"list": "ls", |
| 70 |
"ln": "link", |
| 71 |
"ogr": "org", |
| 72 |
"r": "uninstall", |
| 73 |
"rb": "rebuild", |
| 74 |
"remove": "uninstall", |
| 75 |
"rm": "uninstall", |
| 76 |
"rum": "run", |
| 77 |
"run-script": "run", |
| 78 |
"s": "search", |
| 79 |
"se": "search", |
| 80 |
"show": "view", |
| 81 |
"sit": "install-ci-test", |
| 82 |
"t": "test", |
| 83 |
"tst": "test", |
| 84 |
"u": "update", |
| 85 |
"udpate": "update", |
| 86 |
"un": "uninstall", |
| 87 |
"unlink": "uninstall", |
| 88 |
"up": "update", |
| 89 |
"upgrade": "update", |
| 90 |
"urn": "run", |
| 91 |
"v": "view", |
| 92 |
"verison": "version", |
| 93 |
"why": "explain", |
| 94 |
"x": "exec", |
| 95 |
} |
| 96 |
` |
| 97 |
|
| 98 |
exports[`test/lib/docs.js TAP command list > commands 1`] = ` |
| 99 |
Array [ |
| 100 |
"access", |
| 101 |
"adduser", |
| 102 |
"approve-scripts", |
| 103 |
"audit", |
| 104 |
"bugs", |
| 105 |
"cache", |
| 106 |
"ci", |
| 107 |
"completion", |
| 108 |
"config", |
| 109 |
"dedupe", |
| 110 |
"deny-scripts", |
| 111 |
"deprecate", |
| 112 |
"diff", |
| 113 |
"dist-tag", |
| 114 |
"docs", |
| 115 |
"doctor", |
| 116 |
"edit", |
| 117 |
"exec", |
| 118 |
"explain", |
| 119 |
"explore", |
| 120 |
"find-dupes", |
| 121 |
"fund", |
| 122 |
"get", |
| 123 |
"help", |
| 124 |
"help-search", |
| 125 |
"init", |
| 126 |
"install", |
| 127 |
"install-ci-test", |
| 128 |
"install-test", |
| 129 |
"link", |
| 130 |
"ll", |
| 131 |
"login", |
| 132 |
"logout", |
| 133 |
"ls", |
| 134 |
"org", |
| 135 |
"outdated", |
| 136 |
"owner", |
| 137 |
"pack", |
| 138 |
"ping", |
| 139 |
"pkg", |
| 140 |
"prefix", |
| 141 |
"profile", |
| 142 |
"prune", |
| 143 |
"publish", |
| 144 |
"query", |
| 145 |
"rebuild", |
| 146 |
"repo", |
| 147 |
"restart", |
| 148 |
"root", |
| 149 |
"run", |
| 150 |
"sbom", |
| 151 |
"search", |
| 152 |
"set", |
| 153 |
"shrinkwrap", |
| 154 |
"stage", |
| 155 |
"star", |
| 156 |
"stars", |
| 157 |
"start", |
| 158 |
"stop", |
| 159 |
"team", |
| 160 |
"test", |
| 161 |
"token", |
| 162 |
"trust", |
| 163 |
"undeprecate", |
| 164 |
"uninstall", |
| 165 |
"unpublish", |
| 166 |
"unstar", |
| 167 |
"update", |
| 168 |
"version", |
| 169 |
"view", |
| 170 |
"whoami", |
| 171 |
] |
| 172 |
` |
| 173 |
|
| 174 |
exports[`test/lib/docs.js TAP command list > deref 1`] = ` |
| 175 |
Function deref(c) |
| 176 |
` |
| 177 |
|
| 178 |
exports[`test/lib/docs.js TAP config > all definitions 1`] = ` |
| 179 |
#### \`_auth\` |
| 180 |
|
| 181 |
* Default: null |
| 182 |
* Type: null or String |
| 183 |
|
| 184 |
A basic-auth string to use when authenticating against the npm registry. |
| 185 |
This will ONLY be used to authenticate against the npm registry. For other |
| 186 |
registries you will need to scope it like "//other-registry.tld/:_auth" |
| 187 |
|
| 188 |
Warning: This should generally not be set via a command-line option. It is |
| 189 |
safer to use a registry-provided authentication bearer token stored in the |
| 190 |
~/.npmrc file by running \`npm login\`. |
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
#### \`access\` |
| 195 |
|
| 196 |
* Default: 'public' for new packages, existing packages it will not change the |
| 197 |
current level |
| 198 |
* Type: null, "restricted", "public", or "private" |
| 199 |
|
| 200 |
If you do not want your scoped package to be publicly viewable (and |
| 201 |
installable) set \`--access=restricted\`. |
| 202 |
|
| 203 |
Unscoped packages cannot be set to \`restricted\`. |
| 204 |
|
| 205 |
Note: This defaults to not changing the current access level for existing |
| 206 |
packages. Specifying a value of \`restricted\` or \`public\` during publish will |
| 207 |
change the access for an existing package the same way that \`npm access set |
| 208 |
status\` would. |
| 209 |
|
| 210 |
The value \`private\` is an alias for \`restricted\`. |
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
#### \`all\` |
| 215 |
|
| 216 |
* Default: false |
| 217 |
* Type: Boolean |
| 218 |
|
| 219 |
When running \`npm outdated\` and \`npm ls\`, setting \`--all\` will show all |
| 220 |
outdated or installed packages, rather than only those directly depended |
| 221 |
upon by the current project. |
| 222 |
|
| 223 |
|
| 224 |
|
| 225 |
#### \`allow-directory\` |
| 226 |
|
| 227 |
* Default: "all" |
| 228 |
* Type: "all", "none", or "root" |
| 229 |
|
| 230 |
Limits the ability for npm to install dependencies from directories. That |
| 231 |
is, dependencies that point to a directory instead of a version or semver |
| 232 |
range. Please note that this could leave your tree incomplete and some |
| 233 |
packages may not function as intended or designed. Changing this setting |
| 234 |
will not remove dependencies that are already installed. |
| 235 |
|
| 236 |
\`all\` allows any directories to be installed. \`none\` prevents any |
| 237 |
directories from being installed. \`root\` only allows directories defined in |
| 238 |
your project's package.json to be installed. Also allows directory |
| 239 |
dependencies to be used for other commands like \`npm view\` |
| 240 |
|
| 241 |
|
| 242 |
|
| 243 |
#### \`allow-file\` |
| 244 |
|
| 245 |
* Default: "all" |
| 246 |
* Type: "all", "none", or "root" |
| 247 |
|
| 248 |
Limits the ability for npm to install dependencies from tarball files. That |
| 249 |
is, dependencies that point to a local tarball file instead of a version or |
| 250 |
semver range. Please note that this could leave your tree incomplete and |
| 251 |
some packages may not function as intended or designed. Changing this |
| 252 |
setting will not remove dependencies that are already installed. |
| 253 |
|
| 254 |
\`all\` allows any tarball file to be installed. \`none\` prevents any tarball |
| 255 |
file from being installed. \`root\` only allows tarball files defined in your |
| 256 |
project's package.json to be installed. Also allows tarball file |
| 257 |
dependencies to be used for other commands like \`npm view\` |
| 258 |
|
| 259 |
|
| 260 |
|
| 261 |
#### \`allow-git\` |
| 262 |
|
| 263 |
* Default: "all" |
| 264 |
* Type: "all", "none", or "root" |
| 265 |
|
| 266 |
Limits the ability for npm to fetch dependencies from git references. That |
| 267 |
is, dependencies that point to a git repo instead of a version or semver |
| 268 |
range. Please note that this could leave your tree incomplete and some |
| 269 |
packages may not function as intended or designed. Changing this setting |
| 270 |
will not remove dependencies that are already installed. |
| 271 |
|
| 272 |
\`all\` allows any git dependencies to be fetched and installed. \`none\` |
| 273 |
prevents any git dependencies from being fetched and installed. \`root\` only |
| 274 |
allows git dependencies defined in your project's package.json to be fetched |
| 275 |
and installed. Also allows git dependencies to be fetched for other commands |
| 276 |
like \`npm view\` |
| 277 |
|
| 278 |
|
| 279 |
|
| 280 |
#### \`allow-remote\` |
| 281 |
|
| 282 |
* Default: "all" |
| 283 |
* Type: "all", "none", or "root" |
| 284 |
|
| 285 |
Limits the ability for npm to fetch dependencies from urls. That is, |
| 286 |
dependencies that point to a tarball url instead of a version or semver |
| 287 |
range. Please note that this could leave your tree incomplete and some |
| 288 |
packages may not function as intended or designed. Changing this setting |
| 289 |
will not remove dependencies that are already installed. |
| 290 |
|
| 291 |
\`all\` allows any url to be installed. \`none\` prevents any url from being |
| 292 |
installed. \`root\` only allows urls defined in your project's package.json to |
| 293 |
be installed. Also allows url dependencies to be used for other commands |
| 294 |
like \`npm view\` |
| 295 |
|
| 296 |
|
| 297 |
|
| 298 |
#### \`allow-same-version\` |
| 299 |
|
| 300 |
* Default: false |
| 301 |
* Type: Boolean |
| 302 |
|
| 303 |
Prevents throwing an error when \`npm version\` is used to set the new version |
| 304 |
to the same value as the current version. |
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
#### \`allow-scripts\` |
| 309 |
|
| 310 |
* Default: "" |
| 311 |
* Type: String (can be set multiple times) |
| 312 |
|
| 313 |
Comma-separated list of packages whose install-time lifecycle scripts |
| 314 |
(\`preinstall\`, \`install\`, \`postinstall\`, and \`prepare\` for non-registry |
| 315 |
dependencies) are allowed to run. |
| 316 |
|
| 317 |
This setting is intended for one-off and global contexts: \`npm exec\`, \`npx\`, |
| 318 |
and \`npm install -g\`, where no project \`package.json\` is involved. For |
| 319 |
team-wide policy in a project, use the \`allowScripts\` field in |
| 320 |
\`package.json\` (which also supports explicit denials), or configure it in |
| 321 |
\`.npmrc\`. Passing \`--allow-scripts\` on the command line during a |
| 322 |
project-scoped \`npm install\`, \`ci\`, \`update\`, or \`rebuild\` is an error. |
| 323 |
|
| 324 |
Each name is matched against a dependency's resolved identity, not against |
| 325 |
the package's self-reported name. \`--ignore-scripts\` and |
| 326 |
\`--dangerously-allow-all-scripts\` both override this setting. |
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
#### \`allow-scripts-pending\` |
| 331 |
|
| 332 |
* Default: false |
| 333 |
* Type: Boolean |
| 334 |
|
| 335 |
List packages with install scripts that are not yet covered by the |
| 336 |
\`allowScripts\` policy, without modifying \`package.json\`. Only meaningful for |
| 337 |
\`npm approve-scripts\`. |
| 338 |
|
| 339 |
|
| 340 |
|
| 341 |
#### \`allow-scripts-pin\` |
| 342 |
|
| 343 |
* Default: true |
| 344 |
* Type: Boolean |
| 345 |
|
| 346 |
Write pinned (\`pkg@version\`) entries when approving install scripts. Set to |
| 347 |
\`false\` to write name-only entries that allow any version. Has no effect on |
| 348 |
\`npm deny-scripts\`, which always writes name-only entries regardless of this |
| 349 |
setting. |
| 350 |
|
| 351 |
|
| 352 |
|
| 353 |
#### \`audit\` |
| 354 |
|
| 355 |
* Default: true |
| 356 |
* Type: Boolean |
| 357 |
|
| 358 |
When "true" submit audit reports alongside the current npm command to the |
| 359 |
default registry and all registries configured for scopes. See the |
| 360 |
documentation for [\`npm audit\`](/commands/npm-audit) for details on what is |
| 361 |
submitted. |
| 362 |
|
| 363 |
|
| 364 |
|
| 365 |
#### \`audit-level\` |
| 366 |
|
| 367 |
* Default: null |
| 368 |
* Type: null, "info", "low", "moderate", "high", "critical", or "none" |
| 369 |
|
| 370 |
The minimum level of vulnerability for \`npm audit\` to exit with a non-zero |
| 371 |
exit code. |
| 372 |
|
| 373 |
|
| 374 |
|
| 375 |
#### \`auth-type\` |
| 376 |
|
| 377 |
* Default: "web" |
| 378 |
* Type: "legacy" or "web" |
| 379 |
|
| 380 |
What authentication strategy to use with \`login\`. Note that if an \`otp\` |
| 381 |
config is given, this value will always be set to \`legacy\`. |
| 382 |
|
| 383 |
|
| 384 |
|
| 385 |
#### \`before\` |
| 386 |
|
| 387 |
* Default: null |
| 388 |
* Type: null or Date |
| 389 |
|
| 390 |
If passed to \`npm install\`, will rebuild the npm tree such that only |
| 391 |
versions that were available **on or before** the given date are installed. |
| 392 |
If there are no versions available for the current set of dependencies, the |
| 393 |
command will error. |
| 394 |
|
| 395 |
If the requested version is a \`dist-tag\` and the given tag does not pass the |
| 396 |
\`--before\` filter, the most recent version less than or equal to that tag |
| 397 |
will be used. For example, \`foo@latest\` might install \`[email protected]\` even though |
| 398 |
\`latest\` is \`2.0\`. |
| 399 |
|
| 400 |
If \`before\` and \`min-release-age\` are both set in the same source, \`before\` |
| 401 |
wins (an explicit absolute date overrides a relative window). Across |
| 402 |
sources, the standard precedence applies (cli > env > project > user > |
| 403 |
global), so a higher-priority source can always relax or override a |
| 404 |
lower-priority one. |
| 405 |
|
| 406 |
|
| 407 |
|
| 408 |
#### \`bin-links\` |
| 409 |
|
| 410 |
* Default: true |
| 411 |
* Type: Boolean |
| 412 |
|
| 413 |
Tells npm to create symlinks (or \`.cmd\` shims on Windows) for package |
| 414 |
executables. |
| 415 |
|
| 416 |
Set to false to have it not do this. This can be used to work around the |
| 417 |
fact that some file systems don't support symlinks, even on ostensibly Unix |
| 418 |
systems. |
| 419 |
|
| 420 |
|
| 421 |
|
| 422 |
#### \`browser\` |
| 423 |
|
| 424 |
* Default: macOS: \`"open"\`, Windows: \`"start"\`, Others: \`"xdg-open"\` |
| 425 |
* Type: null, Boolean, or String |
| 426 |
|
| 427 |
The browser that is called by npm commands to open websites. |
| 428 |
|
| 429 |
Set to \`false\` to suppress browser behavior and instead print urls to |
| 430 |
terminal. |
| 431 |
|
| 432 |
Set to \`true\` to use default system URL opener. |
| 433 |
|
| 434 |
|
| 435 |
|
| 436 |
#### \`bypass-2fa\` |
| 437 |
|
| 438 |
* Default: false |
| 439 |
* Type: Boolean |
| 440 |
|
| 441 |
When creating a Granular Access Token with \`npm token create\`, setting this |
| 442 |
to true will allow the token to bypass two-factor authentication. This is |
| 443 |
useful for automation and CI/CD workflows. |
| 444 |
|
| 445 |
|
| 446 |
|
| 447 |
#### \`ca\` |
| 448 |
|
| 449 |
* Default: null |
| 450 |
* Type: null or String (can be set multiple times) |
| 451 |
|
| 452 |
The Certificate Authority signing certificate that is trusted for SSL |
| 453 |
connections to the registry. Values should be in PEM format (Windows calls |
| 454 |
it "Base-64 encoded X.509 (.CER)") with newlines replaced by the string |
| 455 |
"\\n". For example: |
| 456 |
|
| 457 |
\`\`\`ini |
| 458 |
ca="-----BEGIN CERTIFICATE-----\\nXXXX\\nXXXX\\n-----END CERTIFICATE-----" |
| 459 |
\`\`\` |
| 460 |
|
| 461 |
Set to \`null\` to only allow "known" registrars, or to a specific CA cert to |
| 462 |
trust only that specific signing authority. |
| 463 |
|
| 464 |
Multiple CAs can be trusted by specifying an array of certificates: |
| 465 |
|
| 466 |
\`\`\`ini |
| 467 |
ca[]="..." |
| 468 |
ca[]="..." |
| 469 |
\`\`\` |
| 470 |
|
| 471 |
See also the \`strict-ssl\` config. |
| 472 |
|
| 473 |
|
| 474 |
|
| 475 |
#### \`cache\` |
| 476 |
|
| 477 |
* Default: Windows: \`%LocalAppData%\\npm-cache\`, Posix: \`~/.npm\` |
| 478 |
* Type: Path |
| 479 |
|
| 480 |
The location of npm's cache directory. |
| 481 |
|
| 482 |
|
| 483 |
|
| 484 |
#### \`cafile\` |
| 485 |
|
| 486 |
* Default: null |
| 487 |
* Type: Path |
| 488 |
|
| 489 |
A path to a file containing one or multiple Certificate Authority signing |
| 490 |
certificates. Similar to the \`ca\` setting, but allows for multiple CA's, as |
| 491 |
well as for the CA information to be stored in a file on disk. |
| 492 |
|
| 493 |
|
| 494 |
|
| 495 |
#### \`call\` |
| 496 |
|
| 497 |
* Default: "" |
| 498 |
* Type: String |
| 499 |
|
| 500 |
Optional companion option for \`npm exec\`, \`npx\` that allows for specifying a |
| 501 |
custom command to be run along with the installed packages. |
| 502 |
|
| 503 |
\`\`\`bash |
| 504 |
npm exec --package yo --package generator-node --call "yo node" |
| 505 |
\`\`\` |
| 506 |
|
| 507 |
|
| 508 |
|
| 509 |
#### \`cidr\` |
| 510 |
|
| 511 |
* Default: null |
| 512 |
* Type: null or String (can be set multiple times) |
| 513 |
|
| 514 |
This is a list of CIDR address to be used when configuring limited access |
| 515 |
tokens with the \`npm token create\` command. |
| 516 |
|
| 517 |
|
| 518 |
|
| 519 |
#### \`color\` |
| 520 |
|
| 521 |
* Default: true unless the NO_COLOR environ is set to something other than '0' |
| 522 |
* Type: "always" or Boolean |
| 523 |
|
| 524 |
If false, never shows colors. If \`"always"\` then always shows colors. If |
| 525 |
true, then only prints color codes for tty file descriptors. |
| 526 |
|
| 527 |
|
| 528 |
|
| 529 |
#### \`commit-hooks\` |
| 530 |
|
| 531 |
* Default: true |
| 532 |
* Type: Boolean |
| 533 |
|
| 534 |
Run git commit hooks when using the \`npm version\` command. |
| 535 |
|
| 536 |
|
| 537 |
|
| 538 |
#### \`cpu\` |
| 539 |
|
| 540 |
* Default: null |
| 541 |
* Type: null or String |
| 542 |
|
| 543 |
Override CPU architecture of native modules to install. Acceptable values |
| 544 |
are same as \`cpu\` field of package.json, which comes from \`process.arch\`. |
| 545 |
|
| 546 |
|
| 547 |
|
| 548 |
#### \`dangerously-allow-all-scripts\` |
| 549 |
|
| 550 |
* Default: false |
| 551 |
* Type: Boolean |
| 552 |
|
| 553 |
If \`true\`, bypass the \`allowScripts\` policy entirely and run every |
| 554 |
dependency install script regardless of whether it was approved or denied. |
| 555 |
Intended as a migration escape hatch only; its use is strongly discouraged. |
| 556 |
\`--ignore-scripts\` still takes precedence over this setting. |
| 557 |
|
| 558 |
|
| 559 |
|
| 560 |
#### \`depth\` |
| 561 |
|
| 562 |
* Default: \`Infinity\` if \`--all\` is set; otherwise, \`0\` |
| 563 |
* Type: null or Number |
| 564 |
|
| 565 |
The depth to go when recursing packages for \`npm ls\`. |
| 566 |
|
| 567 |
If not set, \`npm ls\` will show only the immediate dependencies of the root |
| 568 |
project. If \`--all\` is set, then npm will show all dependencies by default. |
| 569 |
|
| 570 |
|
| 571 |
|
| 572 |
#### \`description\` |
| 573 |
|
| 574 |
* Default: true |
| 575 |
* Type: Boolean |
| 576 |
|
| 577 |
Show the description in \`npm search\` |
| 578 |
|
| 579 |
|
| 580 |
|
| 581 |
#### \`diff\` |
| 582 |
|
| 583 |
* Default: |
| 584 |
* Type: String (can be set multiple times) |
| 585 |
|
| 586 |
Define arguments to compare in \`npm diff\`. |
| 587 |
|
| 588 |
|
| 589 |
|
| 590 |
#### \`diff-dst-prefix\` |
| 591 |
|
| 592 |
* Default: "b/" |
| 593 |
* Type: String |
| 594 |
|
| 595 |
Destination prefix to be used in \`npm diff\` output. |
| 596 |
|
| 597 |
|
| 598 |
|
| 599 |
#### \`diff-ignore-all-space\` |
| 600 |
|
| 601 |
* Default: false |
| 602 |
* Type: Boolean |
| 603 |
|
| 604 |
Ignore whitespace when comparing lines in \`npm diff\`. |
| 605 |
|
| 606 |
|
| 607 |
|
| 608 |
#### \`diff-name-only\` |
| 609 |
|
| 610 |
* Default: false |
| 611 |
* Type: Boolean |
| 612 |
|
| 613 |
Prints only filenames when using \`npm diff\`. |
| 614 |
|
| 615 |
|
| 616 |
|
| 617 |
#### \`diff-no-prefix\` |
| 618 |
|
| 619 |
* Default: false |
| 620 |
* Type: Boolean |
| 621 |
|
| 622 |
Do not show any source or destination prefix in \`npm diff\` output. |
| 623 |
|
| 624 |
Note: this causes \`npm diff\` to ignore the \`--diff-src-prefix\` and |
| 625 |
\`--diff-dst-prefix\` configs. |
| 626 |
|
| 627 |
|
| 628 |
|
| 629 |
#### \`diff-src-prefix\` |
| 630 |
|
| 631 |
* Default: "a/" |
| 632 |
* Type: String |
| 633 |
|
| 634 |
Source prefix to be used in \`npm diff\` output. |
| 635 |
|
| 636 |
|
| 637 |
|
| 638 |
#### \`diff-text\` |
| 639 |
|
| 640 |
* Default: false |
| 641 |
* Type: Boolean |
| 642 |
|
| 643 |
Treat all files as text in \`npm diff\`. |
| 644 |
|
| 645 |
|
| 646 |
|
| 647 |
#### \`diff-unified\` |
| 648 |
|
| 649 |
* Default: 3 |
| 650 |
* Type: Number |
| 651 |
|
| 652 |
The number of lines of context to print in \`npm diff\`. |
| 653 |
|
| 654 |
|
| 655 |
|
| 656 |
#### \`dry-run\` |
| 657 |
|
| 658 |
* Default: false |
| 659 |
* Type: Boolean |
| 660 |
|
| 661 |
Indicates that you don't want npm to make any changes and that it should |
| 662 |
only report what it would have done. This can be passed into any of the |
| 663 |
commands that modify your local installation, eg, \`install\`, \`update\`, |
| 664 |
\`dedupe\`, \`uninstall\`, as well as \`pack\` and \`publish\`. |
| 665 |
|
| 666 |
Note: This is NOT honored by other network related commands, eg \`dist-tags\`, |
| 667 |
\`owner\`, etc. |
| 668 |
|
| 669 |
|
| 670 |
|
| 671 |
#### \`editor\` |
| 672 |
|
| 673 |
* Default: The EDITOR or VISUAL environment variables, or |
| 674 |
'%SYSTEMROOT%\\notepad.exe' on Windows, or 'vi' on Unix systems |
| 675 |
* Type: String |
| 676 |
|
| 677 |
The command to run for \`npm edit\` and \`npm config edit\`. |
| 678 |
|
| 679 |
|
| 680 |
|
| 681 |
#### \`engine-strict\` |
| 682 |
|
| 683 |
* Default: false |
| 684 |
* Type: Boolean |
| 685 |
|
| 686 |
If set to true, then npm will stubbornly refuse to install (or even consider |
| 687 |
installing) any package that claims to not be compatible with the current |
| 688 |
Node.js version. |
| 689 |
|
| 690 |
This can be overridden by setting the \`--force\` flag. |
| 691 |
|
| 692 |
|
| 693 |
|
| 694 |
#### \`expect-result-count\` |
| 695 |
|
| 696 |
* Default: null |
| 697 |
* Type: null or Number |
| 698 |
|
| 699 |
Tells to expect a specific number of results from the command. |
| 700 |
|
| 701 |
This config cannot be used with: \`expect-results\` |
| 702 |
|
| 703 |
#### \`expect-results\` |
| 704 |
|
| 705 |
* Default: null |
| 706 |
* Type: null or Boolean |
| 707 |
|
| 708 |
Tells npm whether or not to expect results from the command. Can be either |
| 709 |
true (expect some results) or false (expect no results). |
| 710 |
|
| 711 |
This config cannot be used with: \`expect-result-count\` |
| 712 |
|
| 713 |
#### \`expires\` |
| 714 |
|
| 715 |
* Default: null |
| 716 |
* Type: null or Number |
| 717 |
|
| 718 |
When creating a Granular Access Token with \`npm token create\`, this sets the |
| 719 |
expiration in days. If not specified, the server will determine the default |
| 720 |
expiration. |
| 721 |
|
| 722 |
|
| 723 |
|
| 724 |
#### \`fetch-retries\` |
| 725 |
|
| 726 |
* Default: 2 |
| 727 |
* Type: Number |
| 728 |
|
| 729 |
The "retries" config for the \`retry\` module to use when fetching packages |
| 730 |
from the registry. |
| 731 |
|
| 732 |
npm will retry idempotent read requests to the registry in the case of |
| 733 |
network failures or 5xx HTTP errors. |
| 734 |
|
| 735 |
|
| 736 |
|
| 737 |
#### \`fetch-retry-factor\` |
| 738 |
|
| 739 |
* Default: 10 |
| 740 |
* Type: Number |
| 741 |
|
| 742 |
The "factor" config for the \`retry\` module to use when fetching packages. |
| 743 |
|
| 744 |
|
| 745 |
|
| 746 |
#### \`fetch-retry-maxtimeout\` |
| 747 |
|
| 748 |
* Default: 60000 (1 minute) |
| 749 |
* Type: Number |
| 750 |
|
| 751 |
The "maxTimeout" config for the \`retry\` module to use when fetching |
| 752 |
packages. |
| 753 |
|
| 754 |
|
| 755 |
|
| 756 |
#### \`fetch-retry-mintimeout\` |
| 757 |
|
| 758 |
* Default: 10000 (10 seconds) |
| 759 |
* Type: Number |
| 760 |
|
| 761 |
The "minTimeout" config for the \`retry\` module to use when fetching |
| 762 |
packages. |
| 763 |
|
| 764 |
|
| 765 |
|
| 766 |
#### \`fetch-timeout\` |
| 767 |
|
| 768 |
* Default: 300000 (5 minutes) |
| 769 |
* Type: Number |
| 770 |
|
| 771 |
The maximum amount of time to wait for HTTP requests to complete. |
| 772 |
|
| 773 |
|
| 774 |
|
| 775 |
#### \`force\` |
| 776 |
|
| 777 |
* Default: false |
| 778 |
* Type: Boolean |
| 779 |
|
| 780 |
Removes various protections against unfortunate side effects, common |
| 781 |
mistakes, unnecessary performance degradation, and malicious input. |
| 782 |
|
| 783 |
* Allow clobbering non-npm files in global installs. |
| 784 |
* Allow the \`npm version\` command to work on an unclean git repository. |
| 785 |
* Allow deleting the cache folder with \`npm cache clean\`. |
| 786 |
* Allow installing packages that have an \`engines\` declaration requiring a |
| 787 |
different version of npm. |
| 788 |
* Allow installing packages that have an \`engines\` declaration requiring a |
| 789 |
different version of \`node\`, even if \`--engine-strict\` is enabled. |
| 790 |
* Allow \`npm audit fix\` to install modules outside your stated dependency |
| 791 |
range (including SemVer-major changes). |
| 792 |
* Allow unpublishing all versions of a published package. |
| 793 |
* Allow conflicting peerDependencies to be installed in the root project. |
| 794 |
* Implicitly set \`--yes\` during \`npm init\`. |
| 795 |
* Allow clobbering existing values in \`npm pkg\` |
| 796 |
* Allow unpublishing of entire packages (not just a single version). |
| 797 |
|
| 798 |
If you don't have a clear idea of what you want to do, it is strongly |
| 799 |
recommended that you do not use this option! |
| 800 |
|
| 801 |
|
| 802 |
|
| 803 |
#### \`foreground-scripts\` |
| 804 |
|
| 805 |
* Default: \`false\` unless when using \`npm pack\` or \`npm publish\` where it |
| 806 |
defaults to \`true\` |
| 807 |
* Type: Boolean |
| 808 |
|
| 809 |
Run all build scripts (ie, \`preinstall\`, \`install\`, and \`postinstall\`) |
| 810 |
scripts for installed packages in the foreground process, sharing standard |
| 811 |
input, output, and error with the main npm process. |
| 812 |
|
| 813 |
Note that this will generally make installs run slower, and be much noisier, |
| 814 |
but can be useful for debugging. |
| 815 |
|
| 816 |
|
| 817 |
|
| 818 |
#### \`format-package-lock\` |
| 819 |
|
| 820 |
* Default: true |
| 821 |
* Type: Boolean |
| 822 |
|
| 823 |
Format \`package-lock.json\` or \`npm-shrinkwrap.json\` as a human readable |
| 824 |
file. |
| 825 |
|
| 826 |
|
| 827 |
|
| 828 |
#### \`fund\` |
| 829 |
|
| 830 |
* Default: true |
| 831 |
* Type: Boolean |
| 832 |
|
| 833 |
When "true" displays the message at the end of each \`npm install\` |
| 834 |
acknowledging the number of dependencies looking for funding. See [\`npm |
| 835 |
fund\`](/commands/npm-fund) for details. |
| 836 |
|
| 837 |
|
| 838 |
|
| 839 |
#### \`git\` |
| 840 |
|
| 841 |
* Default: "git" |
| 842 |
* Type: String |
| 843 |
|
| 844 |
The command to use for git commands. If git is installed on the computer, |
| 845 |
but is not in the \`PATH\`, then set this to the full path to the git binary. |
| 846 |
|
| 847 |
|
| 848 |
|
| 849 |
#### \`git-tag-version\` |
| 850 |
|
| 851 |
* Default: true |
| 852 |
* Type: Boolean |
| 853 |
|
| 854 |
Tag the commit when using the \`npm version\` command. Setting this to false |
| 855 |
results in no commit being made at all. |
| 856 |
|
| 857 |
|
| 858 |
|
| 859 |
#### \`global\` |
| 860 |
|
| 861 |
* Default: false |
| 862 |
* Type: Boolean |
| 863 |
|
| 864 |
Operates in "global" mode, so that packages are installed into the \`prefix\` |
| 865 |
folder instead of the current working directory. See |
| 866 |
[folders](/configuring-npm/folders) for more on the differences in behavior. |
| 867 |
|
| 868 |
* packages are installed into the \`{prefix}/lib/node_modules\` folder, instead |
| 869 |
of the current working directory. |
| 870 |
* bin files are linked to \`{prefix}/bin\` |
| 871 |
* man pages are linked to \`{prefix}/share/man\` |
| 872 |
|
| 873 |
|
| 874 |
|
| 875 |
#### \`globalconfig\` |
| 876 |
|
| 877 |
* Default: The global --prefix setting plus 'etc/npmrc'. For example, |
| 878 |
'/usr/local/etc/npmrc' |
| 879 |
* Type: Path |
| 880 |
|
| 881 |
The config file to read for global config options. |
| 882 |
|
| 883 |
|
| 884 |
|
| 885 |
#### \`heading\` |
| 886 |
|
| 887 |
* Default: "npm" |
| 888 |
* Type: String |
| 889 |
|
| 890 |
The string that starts all the debugging log output. |
| 891 |
|
| 892 |
|
| 893 |
|
| 894 |
#### \`https-proxy\` |
| 895 |
|
| 896 |
* Default: null |
| 897 |
* Type: null or URL |
| 898 |
|
| 899 |
A proxy to use for outgoing https requests. If the \`HTTPS_PROXY\` or |
| 900 |
\`https_proxy\` or \`HTTP_PROXY\` or \`http_proxy\` environment variables are set, |
| 901 |
proxy settings will be honored by the underlying \`make-fetch-happen\` |
| 902 |
library. |
| 903 |
|
| 904 |
|
| 905 |
|
| 906 |
#### \`if-present\` |
| 907 |
|
| 908 |
* Default: false |
| 909 |
* Type: Boolean |
| 910 |
|
| 911 |
If true, npm will not exit with an error code when \`run\` is invoked for a |
| 912 |
script that isn't defined in the \`scripts\` section of \`package.json\`. This |
| 913 |
option can be used when it's desirable to optionally run a script when it's |
| 914 |
present and fail if the script fails. This is useful, for example, when |
| 915 |
running scripts that may only apply for some builds in an otherwise generic |
| 916 |
CI setup. |
| 917 |
|
| 918 |
This value is not exported to the environment for child processes. |
| 919 |
|
| 920 |
#### \`ignore-scripts\` |
| 921 |
|
| 922 |
* Default: false |
| 923 |
* Type: Boolean |
| 924 |
|
| 925 |
If true, npm does not run scripts specified in package.json files. |
| 926 |
|
| 927 |
Note that commands explicitly intended to run a particular script, such as |
| 928 |
\`npm start\`, \`npm stop\`, \`npm restart\`, \`npm test\`, and \`npm run\` will still |
| 929 |
run their intended script if \`ignore-scripts\` is set, but they will *not* |
| 930 |
run any pre- or post-scripts. |
| 931 |
|
| 932 |
|
| 933 |
|
| 934 |
#### \`include\` |
| 935 |
|
| 936 |
* Default: |
| 937 |
* Type: "prod", "dev", "optional", or "peer" (can be set multiple times) |
| 938 |
|
| 939 |
Option that allows for defining which types of dependencies to install. |
| 940 |
|
| 941 |
This is the inverse of \`--omit=<type>\`. |
| 942 |
|
| 943 |
Dependency types specified in \`--include\` will not be omitted, regardless of |
| 944 |
the order in which omit/include are specified on the command-line. |
| 945 |
|
| 946 |
|
| 947 |
|
| 948 |
#### \`include-attestations\` |
| 949 |
|
| 950 |
* Default: false |
| 951 |
* Type: Boolean |
| 952 |
|
| 953 |
When used with \`npm audit signatures --json\`, includes the full sigstore |
| 954 |
attestation bundles in the JSON output for each verified package. The |
| 955 |
bundles contain DSSE envelopes, verification material, and transparency log |
| 956 |
entries. |
| 957 |
|
| 958 |
|
| 959 |
|
| 960 |
#### \`include-staged\` |
| 961 |
|
| 962 |
* Default: false |
| 963 |
* Type: Boolean |
| 964 |
|
| 965 |
Allow installing "staged" published packages, as defined by [npm RFC PR |
| 966 |
#92](https://github.com/npm/rfcs/pull/92). |
| 967 |
|
| 968 |
This is experimental, and not implemented by the npm public registry. |
| 969 |
|
| 970 |
|
| 971 |
|
| 972 |
#### \`include-workspace-root\` |
| 973 |
|
| 974 |
* Default: false |
| 975 |
* Type: Boolean |
| 976 |
|
| 977 |
Include the workspace root when workspaces are enabled for a command. |
| 978 |
|
| 979 |
When false, specifying individual workspaces via the \`workspace\` config, or |
| 980 |
all workspaces via the \`workspaces\` flag, will cause npm to operate only on |
| 981 |
the specified workspaces, and not on the root project. |
| 982 |
|
| 983 |
This value is not exported to the environment for child processes. |
| 984 |
|
| 985 |
#### \`init-author-email\` |
| 986 |
|
| 987 |
* Default: "" |
| 988 |
* Type: String |
| 989 |
|
| 990 |
The value \`npm init\` should use by default for the package author's email. |
| 991 |
|
| 992 |
|
| 993 |
|
| 994 |
#### \`init-author-name\` |
| 995 |
|
| 996 |
* Default: "" |
| 997 |
* Type: String |
| 998 |
|
| 999 |
The value \`npm init\` should use by default for the package author's name. |
| 1000 |
|
| 1001 |
|
| 1002 |
|
| 1003 |
#### \`init-author-url\` |
| 1004 |
|
| 1005 |
* Default: "" |
| 1006 |
* Type: "" or URL |
| 1007 |
|
| 1008 |
The value \`npm init\` should use by default for the package author's |
| 1009 |
homepage. |
| 1010 |
|
| 1011 |
|
| 1012 |
|
| 1013 |
#### \`init-license\` |
| 1014 |
|
| 1015 |
* Default: "ISC" |
| 1016 |
* Type: String |
| 1017 |
|
| 1018 |
The value \`npm init\` should use by default for the package license. |
| 1019 |
|
| 1020 |
|
| 1021 |
|
| 1022 |
#### \`init-module\` |
| 1023 |
|
| 1024 |
* Default: "~/.npm-init.js" |
| 1025 |
* Type: Path |
| 1026 |
|
| 1027 |
A module that will be loaded by the \`npm init\` command. See the |
| 1028 |
documentation for the |
| 1029 |
[init-package-json](https://github.com/npm/init-package-json) module for |
| 1030 |
more information, or [npm init](/commands/npm-init). |
| 1031 |
|
| 1032 |
|
| 1033 |
|
| 1034 |
#### \`init-private\` |
| 1035 |
|
| 1036 |
* Default: false |
| 1037 |
* Type: Boolean |
| 1038 |
|
| 1039 |
The value \`npm init\` should use by default for the package's private flag. |
| 1040 |
|
| 1041 |
|
| 1042 |
|
| 1043 |
#### \`init-type\` |
| 1044 |
|
| 1045 |
* Default: "commonjs" |
| 1046 |
* Type: String |
| 1047 |
|
| 1048 |
The value that \`npm init\` should use by default for the package.json type |
| 1049 |
field. |
| 1050 |
|
| 1051 |
|
| 1052 |
|
| 1053 |
#### \`init-version\` |
| 1054 |
|
| 1055 |
* Default: "1.0.0" |
| 1056 |
* Type: SemVer string |
| 1057 |
|
| 1058 |
The value that \`npm init\` should use by default for the package version |
| 1059 |
number, if not already set in package.json. |
| 1060 |
|
| 1061 |
|
| 1062 |
|
| 1063 |
#### \`install-links\` |
| 1064 |
|
| 1065 |
* Default: false |
| 1066 |
* Type: Boolean |
| 1067 |
|
| 1068 |
When set file: protocol dependencies will be packed and installed as regular |
| 1069 |
dependencies instead of creating a symlink. This option has no effect on |
| 1070 |
workspaces. |
| 1071 |
|
| 1072 |
|
| 1073 |
|
| 1074 |
#### \`install-strategy\` |
| 1075 |
|
| 1076 |
* Default: "hoisted" |
| 1077 |
* Type: "hoisted", "nested", "shallow", or "linked" |
| 1078 |
|
| 1079 |
Sets the strategy for installing packages in node_modules. hoisted |
| 1080 |
(default): Install non-duplicated in top-level, and duplicated as necessary |
| 1081 |
within directory structure. nested: (formerly --legacy-bundling) install in |
| 1082 |
place, no hoisting. shallow (formerly --global-style) only install direct |
| 1083 |
deps at top-level. linked: (experimental) install in node_modules/.store, |
| 1084 |
link in place, unhoisted. |
| 1085 |
|
| 1086 |
|
| 1087 |
|
| 1088 |
#### \`json\` |
| 1089 |
|
| 1090 |
* Default: false |
| 1091 |
* Type: Boolean |
| 1092 |
|
| 1093 |
Whether or not to output JSON data, rather than the normal output. |
| 1094 |
|
| 1095 |
* In \`npm pkg set\` it enables parsing set values with JSON.parse() before |
| 1096 |
saving them to your \`package.json\`. |
| 1097 |
|
| 1098 |
Not supported by all npm commands. |
| 1099 |
|
| 1100 |
|
| 1101 |
|
| 1102 |
#### \`legacy-peer-deps\` |
| 1103 |
|
| 1104 |
* Default: false |
| 1105 |
* Type: Boolean |
| 1106 |
|
| 1107 |
Causes npm to completely ignore \`peerDependencies\` when building a package |
| 1108 |
tree, as in npm versions 3 through 6. |
| 1109 |
|
| 1110 |
If a package cannot be installed because of overly strict \`peerDependencies\` |
| 1111 |
that collide, it provides a way to move forward resolving the situation. |
| 1112 |
|
| 1113 |
This differs from \`--omit=peer\`, in that \`--omit=peer\` will avoid unpacking |
| 1114 |
\`peerDependencies\` on disk, but will still design a tree such that |
| 1115 |
\`peerDependencies\` _could_ be unpacked in a correct place. |
| 1116 |
|
| 1117 |
Use of \`legacy-peer-deps\` is not recommended, as it will not enforce the |
| 1118 |
\`peerDependencies\` contract that meta-dependencies may rely on. |
| 1119 |
|
| 1120 |
|
| 1121 |
|
| 1122 |
#### \`libc\` |
| 1123 |
|
| 1124 |
* Default: null |
| 1125 |
* Type: null or String |
| 1126 |
|
| 1127 |
Override libc of native modules to install. Acceptable values are same as |
| 1128 |
\`libc\` field of package.json |
| 1129 |
|
| 1130 |
|
| 1131 |
|
| 1132 |
#### \`link\` |
| 1133 |
|
| 1134 |
* Default: false |
| 1135 |
* Type: Boolean |
| 1136 |
|
| 1137 |
Used with \`npm ls\`, limiting output to only those packages that are linked. |
| 1138 |
|
| 1139 |
|
| 1140 |
|
| 1141 |
#### \`local-address\` |
| 1142 |
|
| 1143 |
* Default: null |
| 1144 |
* Type: IP Address |
| 1145 |
|
| 1146 |
The IP address of the local interface to use when making connections to the |
| 1147 |
npm registry. Must be IPv4 in versions of Node prior to 0.12. |
| 1148 |
|
| 1149 |
|
| 1150 |
|
| 1151 |
#### \`location\` |
| 1152 |
|
| 1153 |
* Default: "user" unless \`--global\` is passed, which will also set this value |
| 1154 |
to "global" |
| 1155 |
* Type: "global", "user", or "project" |
| 1156 |
|
| 1157 |
When passed to \`npm config\` this refers to which config file to use. |
| 1158 |
|
| 1159 |
When set to "global" mode, packages are installed into the \`prefix\` folder |
| 1160 |
instead of the current working directory. See |
| 1161 |
[folders](/configuring-npm/folders) for more on the differences in behavior. |
| 1162 |
|
| 1163 |
* packages are installed into the \`{prefix}/lib/node_modules\` folder, instead |
| 1164 |
of the current working directory. |
| 1165 |
* bin files are linked to \`{prefix}/bin\` |
| 1166 |
* man pages are linked to \`{prefix}/share/man\` |
| 1167 |
|
| 1168 |
|
| 1169 |
|
| 1170 |
#### \`lockfile-version\` |
| 1171 |
|
| 1172 |
* Default: Version 3 if no lockfile, auto-converting v1 lockfiles to v3; |
| 1173 |
otherwise, maintain current lockfile version. |
| 1174 |
* Type: null, 1, 2, 3, "1", "2", or "3" |
| 1175 |
|
| 1176 |
Set the lockfile format version to be used in package-lock.json and |
| 1177 |
npm-shrinkwrap-json files. Possible options are: |
| 1178 |
|
| 1179 |
1: The lockfile version used by npm versions 5 and 6. Lacks some data that |
| 1180 |
is used during the install, resulting in slower and possibly less |
| 1181 |
deterministic installs. Prevents lockfile churn when interoperating with |
| 1182 |
older npm versions. |
| 1183 |
|
| 1184 |
2: The default lockfile version used by npm version 7 and 8. Includes both |
| 1185 |
the version 1 lockfile data and version 3 lockfile data, for maximum |
| 1186 |
determinism and interoperability, at the expense of more bytes on disk. |
| 1187 |
|
| 1188 |
3: Only the new lockfile information introduced in npm version 7. Smaller on |
| 1189 |
disk than lockfile version 2, but not interoperable with older npm versions. |
| 1190 |
Ideal if all users are on npm version 7 and higher. |
| 1191 |
|
| 1192 |
|
| 1193 |
|
| 1194 |
#### \`loglevel\` |
| 1195 |
|
| 1196 |
* Default: "notice" |
| 1197 |
* Type: "silent", "error", "warn", "notice", "http", "info", "verbose", or |
| 1198 |
"silly" |
| 1199 |
|
| 1200 |
What level of logs to report. All logs are written to a debug log, with the |
| 1201 |
path to that file printed if the execution of a command fails. |
| 1202 |
|
| 1203 |
Any logs of a higher level than the setting are shown. The default is |
| 1204 |
"notice". |
| 1205 |
|
| 1206 |
See also the \`foreground-scripts\` config. |
| 1207 |
|
| 1208 |
|
| 1209 |
|
| 1210 |
#### \`logs-dir\` |
| 1211 |
|
| 1212 |
* Default: A directory named \`_logs\` inside the cache |
| 1213 |
* Type: null or Path |
| 1214 |
|
| 1215 |
The location of npm's log directory. See [\`npm logging\`](/using-npm/logging) |
| 1216 |
for more information. |
| 1217 |
|
| 1218 |
|
| 1219 |
|
| 1220 |
#### \`logs-max\` |
| 1221 |
|
| 1222 |
* Default: 10 |
| 1223 |
* Type: Number |
| 1224 |
|
| 1225 |
The maximum number of log files to store. |
| 1226 |
|
| 1227 |
If set to 0, no log files will be written for the current run. |
| 1228 |
|
| 1229 |
|
| 1230 |
|
| 1231 |
#### \`long\` |
| 1232 |
|
| 1233 |
* Default: false |
| 1234 |
* Type: Boolean |
| 1235 |
|
| 1236 |
Show extended information in \`ls\`, \`search\`, and \`help-search\`. |
| 1237 |
|
| 1238 |
|
| 1239 |
|
| 1240 |
#### \`maxsockets\` |
| 1241 |
|
| 1242 |
* Default: 15 |
| 1243 |
* Type: Number |
| 1244 |
|
| 1245 |
The maximum number of connections to use per origin (protocol/host/port |
| 1246 |
combination). |
| 1247 |
|
| 1248 |
|
| 1249 |
|
| 1250 |
#### \`message\` |
| 1251 |
|
| 1252 |
* Default: "%s" |
| 1253 |
* Type: String |
| 1254 |
|
| 1255 |
Commit message which is used by \`npm version\` when creating version commit. |
| 1256 |
|
| 1257 |
Any "%s" in the message will be replaced with the version number. |
| 1258 |
|
| 1259 |
|
| 1260 |
|
| 1261 |
#### \`min-release-age\` |
| 1262 |
|
| 1263 |
* Default: null |
| 1264 |
* Type: null or Number |
| 1265 |
|
| 1266 |
If set, npm will build the npm tree such that only versions that were |
| 1267 |
available more than the given number of days ago will be installed. If there |
| 1268 |
are no versions available for the current set of dependencies, the command |
| 1269 |
will error. |
| 1270 |
|
| 1271 |
This flag is a complement to \`before\`, which accepts an exact date instead |
| 1272 |
of a relative number of days. The two may coexist (e.g. \`min-release-age\` in |
| 1273 |
your \`.npmrc\` is preserved when npm internally spawns a sub-process with |
| 1274 |
\`--before\` while preparing a \`git:\` or \`github:\` dependency); when both |
| 1275 |
apply, \`before\` wins within a single source and across sources the standard |
| 1276 |
precedence rules apply. |
| 1277 |
|
| 1278 |
This value is not exported to the environment for child processes. |
| 1279 |
|
| 1280 |
#### \`name\` |
| 1281 |
|
| 1282 |
* Default: null |
| 1283 |
* Type: null or String |
| 1284 |
|
| 1285 |
When creating a Granular Access Token with \`npm token create\`, this sets the |
| 1286 |
name/description for the token. |
| 1287 |
|
| 1288 |
|
| 1289 |
|
| 1290 |
#### \`node-gyp\` |
| 1291 |
|
| 1292 |
* Default: The path to the node-gyp bin that ships with npm |
| 1293 |
* Type: Path |
| 1294 |
|
| 1295 |
This is the location of the "node-gyp" bin. By default it uses one that |
| 1296 |
ships with npm itself. |
| 1297 |
|
| 1298 |
You can use this config to specify your own "node-gyp" to run when it is |
| 1299 |
required to build a package. |
| 1300 |
|
| 1301 |
|
| 1302 |
|
| 1303 |
#### \`node-options\` |
| 1304 |
|
| 1305 |
* Default: null |
| 1306 |
* Type: null or String |
| 1307 |
|
| 1308 |
Options to pass through to Node.js via the \`NODE_OPTIONS\` environment |
| 1309 |
variable. This does not impact how npm itself is executed but it does impact |
| 1310 |
how lifecycle scripts are called. |
| 1311 |
|
| 1312 |
|
| 1313 |
|
| 1314 |
#### \`noproxy\` |
| 1315 |
|
| 1316 |
* Default: The value of the NO_PROXY environment variable |
| 1317 |
* Type: String (can be set multiple times) |
| 1318 |
|
| 1319 |
Domain extensions that should bypass any proxies. |
| 1320 |
|
| 1321 |
Also accepts a comma-delimited string. |
| 1322 |
|
| 1323 |
|
| 1324 |
|
| 1325 |
#### \`offline\` |
| 1326 |
|
| 1327 |
* Default: false |
| 1328 |
* Type: Boolean |
| 1329 |
|
| 1330 |
Force offline mode: no network requests will be done during install. To |
| 1331 |
allow the CLI to fill in missing cache data, see \`--prefer-offline\`. |
| 1332 |
|
| 1333 |
|
| 1334 |
|
| 1335 |
#### \`omit\` |
| 1336 |
|
| 1337 |
* Default: 'dev' if the \`NODE_ENV\` environment variable is set to |
| 1338 |
'production'; otherwise, empty. |
| 1339 |
* Type: "dev", "optional", or "peer" (can be set multiple times) |
| 1340 |
|
| 1341 |
Dependency types to omit from the installation tree on disk. |
| 1342 |
|
| 1343 |
Note that these dependencies _are_ still resolved and added to the |
| 1344 |
\`package-lock.json\` or \`npm-shrinkwrap.json\` file. They are just not |
| 1345 |
physically installed on disk. |
| 1346 |
|
| 1347 |
If a package type appears in both the \`--include\` and \`--omit\` lists, then |
| 1348 |
it will be included. |
| 1349 |
|
| 1350 |
If the resulting omit list includes \`'dev'\`, then the \`NODE_ENV\` environment |
| 1351 |
variable will be set to \`'production'\` for all lifecycle scripts. |
| 1352 |
|
| 1353 |
|
| 1354 |
|
| 1355 |
#### \`omit-lockfile-registry-resolved\` |
| 1356 |
|
| 1357 |
* Default: false |
| 1358 |
* Type: Boolean |
| 1359 |
|
| 1360 |
This option causes npm to create lock files without a \`resolved\` key for |
| 1361 |
registry dependencies. Subsequent installs will need to resolve tarball |
| 1362 |
endpoints with the configured registry, likely resulting in a longer install |
| 1363 |
time. |
| 1364 |
|
| 1365 |
|
| 1366 |
|
| 1367 |
#### \`orgs\` |
| 1368 |
|
| 1369 |
* Default: null |
| 1370 |
* Type: null or String (can be set multiple times) |
| 1371 |
|
| 1372 |
When creating a Granular Access Token with \`npm token create\`, this limits |
| 1373 |
the token access to specific organizations. |
| 1374 |
|
| 1375 |
|
| 1376 |
|
| 1377 |
#### \`orgs-permission\` |
| 1378 |
|
| 1379 |
* Default: null |
| 1380 |
* Type: null, "read-only", "read-write", or "no-access" |
| 1381 |
|
| 1382 |
When creating a Granular Access Token with \`npm token create\`, sets the |
| 1383 |
permission level for organizations. Options are "read-only", "read-write", |
| 1384 |
or "no-access". |
| 1385 |
|
| 1386 |
|
| 1387 |
|
| 1388 |
#### \`os\` |
| 1389 |
|
| 1390 |
* Default: null |
| 1391 |
* Type: null or String |
| 1392 |
|
| 1393 |
Override OS of native modules to install. Acceptable values are same as \`os\` |
| 1394 |
field of package.json, which comes from \`process.platform\`. |
| 1395 |
|
| 1396 |
|
| 1397 |
|
| 1398 |
#### \`otp\` |
| 1399 |
|
| 1400 |
* Default: null |
| 1401 |
* Type: null or String |
| 1402 |
|
| 1403 |
This is a one-time password from a two-factor authenticator. It's needed |
| 1404 |
when publishing or changing package permissions with \`npm access\`. |
| 1405 |
|
| 1406 |
If not set, and a registry response fails with a challenge for a one-time |
| 1407 |
password, npm will prompt on the command line for one. |
| 1408 |
|
| 1409 |
|
| 1410 |
|
| 1411 |
#### \`pack-destination\` |
| 1412 |
|
| 1413 |
* Default: "." |
| 1414 |
* Type: String |
| 1415 |
|
| 1416 |
Directory in which \`npm pack\` will save tarballs. |
| 1417 |
|
| 1418 |
|
| 1419 |
|
| 1420 |
#### \`package\` |
| 1421 |
|
| 1422 |
* Default: |
| 1423 |
* Type: String (can be set multiple times) |
| 1424 |
|
| 1425 |
The package or packages to install for [\`npm exec\`](/commands/npm-exec) |
| 1426 |
|
| 1427 |
|
| 1428 |
|
| 1429 |
#### \`package-lock\` |
| 1430 |
|
| 1431 |
* Default: true |
| 1432 |
* Type: Boolean |
| 1433 |
|
| 1434 |
If set to false, then ignore \`package-lock.json\` files when installing. This |
| 1435 |
will also prevent _writing_ \`package-lock.json\` if \`save\` is true. |
| 1436 |
|
| 1437 |
|
| 1438 |
|
| 1439 |
#### \`package-lock-only\` |
| 1440 |
|
| 1441 |
* Default: false |
| 1442 |
* Type: Boolean |
| 1443 |
|
| 1444 |
If set to true, the current operation will only use the \`package-lock.json\`, |
| 1445 |
ignoring \`node_modules\`. |
| 1446 |
|
| 1447 |
For \`update\` this means only the \`package-lock.json\` will be updated, |
| 1448 |
instead of checking \`node_modules\` and downloading dependencies. |
| 1449 |
|
| 1450 |
For \`list\` this means the output will be based on the tree described by the |
| 1451 |
\`package-lock.json\`, rather than the contents of \`node_modules\`. |
| 1452 |
|
| 1453 |
|
| 1454 |
|
| 1455 |
#### \`packages\` |
| 1456 |
|
| 1457 |
* Default: |
| 1458 |
* Type: null or String (can be set multiple times) |
| 1459 |
|
| 1460 |
When creating a Granular Access Token with \`npm token create\`, this limits |
| 1461 |
the token access to specific packages. |
| 1462 |
|
| 1463 |
|
| 1464 |
|
| 1465 |
#### \`packages-all\` |
| 1466 |
|
| 1467 |
* Default: false |
| 1468 |
* Type: Boolean |
| 1469 |
|
| 1470 |
When creating a Granular Access Token with \`npm token create\`, grants the |
| 1471 |
token access to all packages instead of limiting to specific packages. |
| 1472 |
|
| 1473 |
|
| 1474 |
|
| 1475 |
#### \`packages-and-scopes-permission\` |
| 1476 |
|
| 1477 |
* Default: null |
| 1478 |
* Type: null, "read-only", "read-write", or "no-access" |
| 1479 |
|
| 1480 |
When creating a Granular Access Token with \`npm token create\`, sets the |
| 1481 |
permission level for packages and scopes. Options are "read-only", |
| 1482 |
"read-write", or "no-access". |
| 1483 |
|
| 1484 |
|
| 1485 |
|
| 1486 |
#### \`parseable\` |
| 1487 |
|
| 1488 |
* Default: false |
| 1489 |
* Type: Boolean |
| 1490 |
|
| 1491 |
Output parseable results from commands that write to standard output. For |
| 1492 |
\`npm search\`, this will be tab-separated table format. |
| 1493 |
|
| 1494 |
|
| 1495 |
|
| 1496 |
#### \`password\` |
| 1497 |
|
| 1498 |
* Default: null |
| 1499 |
* Type: null or String |
| 1500 |
|
| 1501 |
Password for authentication. Can be provided via command line when creating |
| 1502 |
tokens, though it's generally safer to be prompted for it. |
| 1503 |
|
| 1504 |
|
| 1505 |
|
| 1506 |
#### \`prefer-dedupe\` |
| 1507 |
|
| 1508 |
* Default: false |
| 1509 |
* Type: Boolean |
| 1510 |
|
| 1511 |
Prefer to deduplicate packages if possible, rather than choosing a newer |
| 1512 |
version of a dependency. |
| 1513 |
|
| 1514 |
|
| 1515 |
|
| 1516 |
#### \`prefer-offline\` |
| 1517 |
|
| 1518 |
* Default: false |
| 1519 |
* Type: Boolean |
| 1520 |
|
| 1521 |
If true, staleness checks for cached data will be bypassed, but missing data |
| 1522 |
will be requested from the server. To force full offline mode, use |
| 1523 |
\`--offline\`. |
| 1524 |
|
| 1525 |
|
| 1526 |
|
| 1527 |
#### \`prefer-online\` |
| 1528 |
|
| 1529 |
* Default: false |
| 1530 |
* Type: Boolean |
| 1531 |
|
| 1532 |
If true, staleness checks for cached data will be forced, making the CLI |
| 1533 |
look for updates immediately even for fresh package data. |
| 1534 |
|
| 1535 |
|
| 1536 |
|
| 1537 |
#### \`prefix\` |
| 1538 |
|
| 1539 |
* Default: In global mode, the folder where the node executable is installed. |
| 1540 |
Otherwise, the nearest parent folder containing either a package.json file |
| 1541 |
or a node_modules folder. |
| 1542 |
* Type: Path |
| 1543 |
|
| 1544 |
The location to install global items. If set on the command line, then it |
| 1545 |
forces non-global commands to run in the specified folder. |
| 1546 |
|
| 1547 |
|
| 1548 |
|
| 1549 |
#### \`preid\` |
| 1550 |
|
| 1551 |
* Default: "" |
| 1552 |
* Type: String |
| 1553 |
|
| 1554 |
The "prerelease identifier" to use as a prefix for the "prerelease" part of |
| 1555 |
a semver. Like the \`rc\` in \`1.2.0-rc.8\`. |
| 1556 |
|
| 1557 |
|
| 1558 |
|
| 1559 |
#### \`progress\` |
| 1560 |
|
| 1561 |
* Default: \`true\` when not in CI and both stderr and stdout are TTYs and not |
| 1562 |
in a dumb terminal |
| 1563 |
* Type: Boolean |
| 1564 |
|
| 1565 |
When set to \`true\`, npm will display a progress bar during time intensive |
| 1566 |
operations, if \`process.stderr\` and \`process.stdout\` are a TTY. |
| 1567 |
|
| 1568 |
Set to \`false\` to suppress the progress bar. |
| 1569 |
|
| 1570 |
|
| 1571 |
|
| 1572 |
#### \`provenance\` |
| 1573 |
|
| 1574 |
* Default: false |
| 1575 |
* Type: Boolean |
| 1576 |
|
| 1577 |
When publishing from a supported cloud CI/CD system, the package will be |
| 1578 |
publicly linked to where it was built and published from. |
| 1579 |
|
| 1580 |
This config cannot be used with: \`provenance-file\` |
| 1581 |
|
| 1582 |
#### \`provenance-file\` |
| 1583 |
|
| 1584 |
* Default: null |
| 1585 |
* Type: Path |
| 1586 |
|
| 1587 |
When publishing, the provenance bundle at the given path will be used. |
| 1588 |
|
| 1589 |
This config cannot be used with: \`provenance\` |
| 1590 |
|
| 1591 |
#### \`proxy\` |
| 1592 |
|
| 1593 |
* Default: null |
| 1594 |
* Type: null, false, or URL |
| 1595 |
|
| 1596 |
A proxy to use for outgoing http requests. If the \`HTTP_PROXY\` or |
| 1597 |
\`http_proxy\` environment variables are set, proxy settings will be honored |
| 1598 |
by the underlying \`request\` library. |
| 1599 |
|
| 1600 |
|
| 1601 |
|
| 1602 |
#### \`read-only\` |
| 1603 |
|
| 1604 |
* Default: false |
| 1605 |
* Type: Boolean |
| 1606 |
|
| 1607 |
This is used to mark a token as unable to publish when configuring limited |
| 1608 |
access tokens with the \`npm token create\` command. |
| 1609 |
|
| 1610 |
|
| 1611 |
|
| 1612 |
#### \`rebuild-bundle\` |
| 1613 |
|
| 1614 |
* Default: true |
| 1615 |
* Type: Boolean |
| 1616 |
|
| 1617 |
Rebuild bundled dependencies after installation. |
| 1618 |
|
| 1619 |
|
| 1620 |
|
| 1621 |
#### \`registry\` |
| 1622 |
|
| 1623 |
* Default: "https://registry.npmjs.org/" |
| 1624 |
* Type: URL |
| 1625 |
|
| 1626 |
The base URL of the npm registry. |
| 1627 |
|
| 1628 |
|
| 1629 |
|
| 1630 |
#### \`replace-registry-host\` |
| 1631 |
|
| 1632 |
* Default: "npmjs" |
| 1633 |
* Type: "npmjs", "never", "always", or String |
| 1634 |
|
| 1635 |
Defines behavior for replacing the registry host in a lockfile with the |
| 1636 |
configured registry. |
| 1637 |
|
| 1638 |
The default behavior is to replace package dist URLs from the default |
| 1639 |
registry (https://registry.npmjs.org) to the configured registry. If set to |
| 1640 |
"never", then use the registry value. If set to "always", then replace the |
| 1641 |
registry host with the configured host every time. |
| 1642 |
|
| 1643 |
You may also specify a bare hostname (e.g., "registry.npmjs.org"). |
| 1644 |
|
| 1645 |
|
| 1646 |
|
| 1647 |
#### \`save\` |
| 1648 |
|
| 1649 |
* Default: \`true\` unless when using \`npm update\` where it defaults to \`false\` |
| 1650 |
* Type: Boolean |
| 1651 |
|
| 1652 |
Save installed packages to a \`package.json\` file as dependencies. |
| 1653 |
|
| 1654 |
When used with the \`npm rm\` command, removes the dependency from |
| 1655 |
\`package.json\`. |
| 1656 |
|
| 1657 |
Will also prevent writing to \`package-lock.json\` if set to \`false\`. |
| 1658 |
|
| 1659 |
|
| 1660 |
|
| 1661 |
#### \`save-bundle\` |
| 1662 |
|
| 1663 |
* Default: false |
| 1664 |
* Type: Boolean |
| 1665 |
|
| 1666 |
If a package would be saved at install time by the use of \`--save\`, |
| 1667 |
\`--save-dev\`, or \`--save-optional\`, then also put it in the |
| 1668 |
\`bundleDependencies\` list. |
| 1669 |
|
| 1670 |
Ignored if \`--save-peer\` is set, since peerDependencies cannot be bundled. |
| 1671 |
|
| 1672 |
|
| 1673 |
|
| 1674 |
#### \`save-dev\` |
| 1675 |
|
| 1676 |
* Default: false |
| 1677 |
* Type: Boolean |
| 1678 |
|
| 1679 |
Save installed packages to a package.json file as \`devDependencies\`. |
| 1680 |
|
| 1681 |
This config cannot be used with: \`save-optional\`, \`save-peer\`, \`save-prod\` |
| 1682 |
|
| 1683 |
#### \`save-exact\` |
| 1684 |
|
| 1685 |
* Default: false |
| 1686 |
* Type: Boolean |
| 1687 |
|
| 1688 |
Dependencies saved to package.json will be configured with an exact version |
| 1689 |
rather than using npm's default semver range operator. |
| 1690 |
|
| 1691 |
|
| 1692 |
|
| 1693 |
#### \`save-optional\` |
| 1694 |
|
| 1695 |
* Default: false |
| 1696 |
* Type: Boolean |
| 1697 |
|
| 1698 |
Save installed packages to a package.json file as \`optionalDependencies\`. |
| 1699 |
|
| 1700 |
This config cannot be used with: \`save-dev\`, \`save-peer\`, \`save-prod\` |
| 1701 |
|
| 1702 |
#### \`save-peer\` |
| 1703 |
|
| 1704 |
* Default: false |
| 1705 |
* Type: Boolean |
| 1706 |
|
| 1707 |
Save installed packages to a package.json file as \`peerDependencies\` |
| 1708 |
|
| 1709 |
This config cannot be used with: \`save-dev\`, \`save-optional\`, \`save-prod\` |
| 1710 |
|
| 1711 |
#### \`save-prefix\` |
| 1712 |
|
| 1713 |
* Default: "^" |
| 1714 |
* Type: String |
| 1715 |
|
| 1716 |
Configure how versions of packages installed to a package.json file via |
| 1717 |
\`--save\` or \`--save-dev\` get prefixed. |
| 1718 |
|
| 1719 |
For example if a package has version \`1.2.3\`, by default its version is set |
| 1720 |
to \`^1.2.3\` which allows minor upgrades for that package, but after \`npm |
| 1721 |
config set save-prefix='~'\` it would be set to \`~1.2.3\` which only allows |
| 1722 |
patch upgrades. |
| 1723 |
|
| 1724 |
|
| 1725 |
|
| 1726 |
#### \`save-prod\` |
| 1727 |
|
| 1728 |
* Default: false |
| 1729 |
* Type: Boolean |
| 1730 |
|
| 1731 |
Save installed packages into \`dependencies\` specifically. This is useful if |
| 1732 |
a package already exists in \`devDependencies\` or \`optionalDependencies\`, but |
| 1733 |
you want to move it to be a non-optional production dependency. |
| 1734 |
|
| 1735 |
This is the default behavior if \`--save\` is true, and neither \`--save-dev\` |
| 1736 |
or \`--save-optional\` are true. |
| 1737 |
|
| 1738 |
This config cannot be used with: \`save-dev\`, \`save-optional\`, \`save-peer\` |
| 1739 |
|
| 1740 |
#### \`sbom-format\` |
| 1741 |
|
| 1742 |
* Default: null |
| 1743 |
* Type: "cyclonedx" or "spdx" |
| 1744 |
|
| 1745 |
SBOM format to use when generating SBOMs. |
| 1746 |
|
| 1747 |
|
| 1748 |
|
| 1749 |
#### \`sbom-type\` |
| 1750 |
|
| 1751 |
* Default: "library" |
| 1752 |
* Type: "library", "application", or "framework" |
| 1753 |
|
| 1754 |
The type of package described by the generated SBOM. For SPDX, this is the |
| 1755 |
value for the \`primaryPackagePurpose\` field. For CycloneDX, this is the |
| 1756 |
value for the \`type\` field. |
| 1757 |
|
| 1758 |
|
| 1759 |
|
| 1760 |
#### \`scope\` |
| 1761 |
|
| 1762 |
* Default: the scope of the current project, if any, or "" |
| 1763 |
* Type: String |
| 1764 |
|
| 1765 |
Associate an operation with a scope for a scoped registry. |
| 1766 |
|
| 1767 |
Useful when logging in to or out of a private registry: |
| 1768 |
|
| 1769 |
\`\`\` |
| 1770 |
# log in, linking the scope to the custom registry |
| 1771 |
npm login --scope=@mycorp --registry=https://registry.mycorp.com |
| 1772 |
|
| 1773 |
# log out, removing the link and the auth token |
| 1774 |
npm logout --scope=@mycorp |
| 1775 |
\`\`\` |
| 1776 |
|
| 1777 |
This will cause \`@mycorp\` to be mapped to the registry for future |
| 1778 |
installation of packages specified according to the pattern |
| 1779 |
\`@mycorp/package\`. |
| 1780 |
|
| 1781 |
This will also cause \`npm init\` to create a scoped package. |
| 1782 |
|
| 1783 |
\`\`\` |
| 1784 |
# accept all defaults, and create a package named "@foo/whatever", |
| 1785 |
# instead of just named "whatever" |
| 1786 |
npm init --scope=@foo --yes |
| 1787 |
\`\`\` |
| 1788 |
|
| 1789 |
|
| 1790 |
|
| 1791 |
#### \`scopes\` |
| 1792 |
|
| 1793 |
* Default: null |
| 1794 |
* Type: null or String (can be set multiple times) |
| 1795 |
|
| 1796 |
When creating a Granular Access Token with \`npm token create\`, this limits |
| 1797 |
the token access to specific scopes. Provide a scope name (with or without @ |
| 1798 |
prefix). |
| 1799 |
|
| 1800 |
|
| 1801 |
|
| 1802 |
#### \`script-shell\` |
| 1803 |
|
| 1804 |
* Default: '/bin/sh' on POSIX systems, 'cmd.exe' on Windows |
| 1805 |
* Type: null or String |
| 1806 |
|
| 1807 |
The shell to use for scripts run with the \`npm exec\`, \`npm run\` and \`npm |
| 1808 |
init <package-spec>\` commands. |
| 1809 |
|
| 1810 |
|
| 1811 |
|
| 1812 |
#### \`searchexclude\` |
| 1813 |
|
| 1814 |
* Default: "" |
| 1815 |
* Type: String |
| 1816 |
|
| 1817 |
Space-separated options that limit the results from search. |
| 1818 |
|
| 1819 |
|
| 1820 |
|
| 1821 |
#### \`searchlimit\` |
| 1822 |
|
| 1823 |
* Default: 20 |
| 1824 |
* Type: Number |
| 1825 |
|
| 1826 |
Number of items to limit search results to. Will not apply at all to legacy |
| 1827 |
searches. |
| 1828 |
|
| 1829 |
|
| 1830 |
|
| 1831 |
#### \`searchopts\` |
| 1832 |
|
| 1833 |
* Default: "" |
| 1834 |
* Type: String |
| 1835 |
|
| 1836 |
Space-separated options that are always passed to search. |
| 1837 |
|
| 1838 |
|
| 1839 |
|
| 1840 |
#### \`searchstaleness\` |
| 1841 |
|
| 1842 |
* Default: 900 |
| 1843 |
* Type: Number |
| 1844 |
|
| 1845 |
The age of the cache, in seconds, before another registry request is made if |
| 1846 |
using legacy search endpoint. |
| 1847 |
|
| 1848 |
|
| 1849 |
|
| 1850 |
#### \`shell\` |
| 1851 |
|
| 1852 |
* Default: SHELL environment variable, or "bash" on Posix, or "cmd.exe" on |
| 1853 |
Windows |
| 1854 |
* Type: String |
| 1855 |
|
| 1856 |
The shell to run for the \`npm explore\` command. |
| 1857 |
|
| 1858 |
|
| 1859 |
|
| 1860 |
#### \`sign-git-commit\` |
| 1861 |
|
| 1862 |
* Default: false |
| 1863 |
* Type: Boolean |
| 1864 |
|
| 1865 |
If set to true, then the \`npm version\` command will commit the new package |
| 1866 |
version using \`-S\` to add a signature. |
| 1867 |
|
| 1868 |
Note that git requires you to have set up GPG keys in your git configs for |
| 1869 |
this to work properly. |
| 1870 |
|
| 1871 |
|
| 1872 |
|
| 1873 |
#### \`sign-git-tag\` |
| 1874 |
|
| 1875 |
* Default: false |
| 1876 |
* Type: Boolean |
| 1877 |
|
| 1878 |
If set to true, then the \`npm version\` command will tag the version using |
| 1879 |
\`-s\` to add a signature. |
| 1880 |
|
| 1881 |
Note that git requires you to have set up GPG keys in your git configs for |
| 1882 |
this to work properly. |
| 1883 |
|
| 1884 |
|
| 1885 |
|
| 1886 |
#### \`strict-allow-scripts\` |
| 1887 |
|
| 1888 |
* Default: false |
| 1889 |
* Type: Boolean |
| 1890 |
|
| 1891 |
If \`true\`, turn the install-script policy from a warning into a hard error: |
| 1892 |
any dependency with install scripts not covered by \`allowScripts\` will fail |
| 1893 |
the install instead of running with a notice. |
| 1894 |
|
| 1895 |
Dependencies explicitly denied with \`false\` in \`allowScripts\` are always |
| 1896 |
silently skipped; this setting only affects unreviewed entries. |
| 1897 |
\`--ignore-scripts\` and \`--dangerously-allow-all-scripts\` both override this |
| 1898 |
setting. |
| 1899 |
|
| 1900 |
|
| 1901 |
|
| 1902 |
#### \`strict-peer-deps\` |
| 1903 |
|
| 1904 |
* Default: false |
| 1905 |
* Type: Boolean |
| 1906 |
|
| 1907 |
If set to \`true\`, and \`--legacy-peer-deps\` is not set, then _any_ |
| 1908 |
conflicting \`peerDependencies\` will be treated as an install failure, even |
| 1909 |
if npm could reasonably guess the appropriate resolution based on non-peer |
| 1910 |
dependency relationships. |
| 1911 |
|
| 1912 |
By default, conflicting \`peerDependencies\` deep in the dependency graph will |
| 1913 |
be resolved using the nearest non-peer dependency specification, even if |
| 1914 |
doing so will result in some packages receiving a peer dependency outside |
| 1915 |
the range set in their package's \`peerDependencies\` object. |
| 1916 |
|
| 1917 |
When such an override is performed, a warning is printed, explaining the |
| 1918 |
conflict and the packages involved. If \`--strict-peer-deps\` is set, then |
| 1919 |
this warning is treated as a failure. |
| 1920 |
|
| 1921 |
|
| 1922 |
|
| 1923 |
#### \`strict-ssl\` |
| 1924 |
|
| 1925 |
* Default: true |
| 1926 |
* Type: Boolean |
| 1927 |
|
| 1928 |
Whether or not to do SSL key validation when making requests to the registry |
| 1929 |
via https. |
| 1930 |
|
| 1931 |
See also the \`ca\` config. |
| 1932 |
|
| 1933 |
|
| 1934 |
|
| 1935 |
#### \`tag\` |
| 1936 |
|
| 1937 |
* Default: "latest" |
| 1938 |
* Type: String |
| 1939 |
|
| 1940 |
If you ask npm to install a package and don't tell it a specific version, |
| 1941 |
then it will install the specified tag. |
| 1942 |
|
| 1943 |
It is the tag added to the package@version specified in the \`npm dist-tag |
| 1944 |
add\` command, if no explicit tag is given. |
| 1945 |
|
| 1946 |
When used by the \`npm diff\` command, this is the tag used to fetch the |
| 1947 |
tarball that will be compared with the local files by default. |
| 1948 |
|
| 1949 |
If used in the \`npm publish\` command, this is the tag that will be added to |
| 1950 |
the package submitted to the registry. |
| 1951 |
|
| 1952 |
|
| 1953 |
|
| 1954 |
#### \`tag-version-prefix\` |
| 1955 |
|
| 1956 |
* Default: "v" |
| 1957 |
* Type: String |
| 1958 |
|
| 1959 |
If set, alters the prefix used when tagging a new version when performing a |
| 1960 |
version increment using \`npm version\`. To remove the prefix altogether, set |
| 1961 |
it to the empty string: \`""\`. |
| 1962 |
|
| 1963 |
Because other tools may rely on the convention that npm version tags look |
| 1964 |
like \`v1.0.0\`, _only use this property if it is absolutely necessary_. In |
| 1965 |
particular, use care when overriding this setting for public packages. |
| 1966 |
|
| 1967 |
|
| 1968 |
|
| 1969 |
#### \`timing\` |
| 1970 |
|
| 1971 |
* Default: false |
| 1972 |
* Type: Boolean |
| 1973 |
|
| 1974 |
If true, writes timing information to a process specific json file in the |
| 1975 |
cache or \`logs-dir\`. The file name ends with \`-timing.json\`. |
| 1976 |
|
| 1977 |
You can quickly view it with this [json](https://npm.im/json) command line: |
| 1978 |
\`cat ~/.npm/_logs/*-timing.json | npm exec -- json -g\`. |
| 1979 |
|
| 1980 |
Timing information will also be reported in the terminal. To suppress this |
| 1981 |
while still writing the timing file, use \`--silent\`. |
| 1982 |
|
| 1983 |
|
| 1984 |
|
| 1985 |
#### \`token-description\` |
| 1986 |
|
| 1987 |
* Default: null |
| 1988 |
* Type: null or String |
| 1989 |
|
| 1990 |
Description text for the token when using \`npm token create\`. |
| 1991 |
|
| 1992 |
|
| 1993 |
|
| 1994 |
#### \`umask\` |
| 1995 |
|
| 1996 |
* Default: 0 |
| 1997 |
* Type: Octal numeric string in range 0000..0777 (0..511) |
| 1998 |
|
| 1999 |
The "umask" value to use when setting the file creation mode on files and |
| 2000 |
folders. |
| 2001 |
|
| 2002 |
Folders and executables are given a mode which is \`0o777\` masked against |
| 2003 |
this value. Other files are given a mode which is \`0o666\` masked against |
| 2004 |
this value. |
| 2005 |
|
| 2006 |
Note that the underlying system will _also_ apply its own umask value to |
| 2007 |
files and folders that are created, and npm does not circumvent this, but |
| 2008 |
rather adds the \`--umask\` config to it. |
| 2009 |
|
| 2010 |
Thus, the effective default umask value on most POSIX systems is 0o22, |
| 2011 |
meaning that folders and executables are created with a mode of 0o755 and |
| 2012 |
other files are created with a mode of 0o644. |
| 2013 |
|
| 2014 |
|
| 2015 |
|
| 2016 |
#### \`unicode\` |
| 2017 |
|
| 2018 |
* Default: false on windows, true on mac/unix systems with a unicode locale, |
| 2019 |
as defined by the \`LC_ALL\`, \`LC_CTYPE\`, or \`LANG\` environment variables. |
| 2020 |
* Type: Boolean |
| 2021 |
|
| 2022 |
When set to true, npm uses unicode characters in the tree output. When |
| 2023 |
false, it uses ascii characters instead of unicode glyphs. |
| 2024 |
|
| 2025 |
|
| 2026 |
|
| 2027 |
#### \`update-notifier\` |
| 2028 |
|
| 2029 |
* Default: true |
| 2030 |
* Type: Boolean |
| 2031 |
|
| 2032 |
Set to false to suppress the update notification when using an older version |
| 2033 |
of npm than the latest. |
| 2034 |
|
| 2035 |
|
| 2036 |
|
| 2037 |
#### \`usage\` |
| 2038 |
|
| 2039 |
* Default: false |
| 2040 |
* Type: Boolean |
| 2041 |
|
| 2042 |
Show short usage output about the command specified. |
| 2043 |
|
| 2044 |
|
| 2045 |
|
| 2046 |
#### \`user-agent\` |
| 2047 |
|
| 2048 |
* Default: "npm/{npm-version} node/{node-version} {platform} {arch} |
| 2049 |
workspaces/{workspaces} {ci}" |
| 2050 |
* Type: String |
| 2051 |
|
| 2052 |
Sets the User-Agent request header. The following fields are replaced with |
| 2053 |
their actual counterparts: |
| 2054 |
|
| 2055 |
* \`{npm-version}\` - The npm version in use |
| 2056 |
* \`{node-version}\` - The Node.js version in use |
| 2057 |
* \`{platform}\` - The value of \`process.platform\` |
| 2058 |
* \`{arch}\` - The value of \`process.arch\` |
| 2059 |
* \`{workspaces}\` - Set to \`true\` if the \`workspaces\` or \`workspace\` options |
| 2060 |
are set. |
| 2061 |
* \`{ci}\` - The value of the \`ci-name\` config, if set, prefixed with \`ci/\`, or |
| 2062 |
an empty string if \`ci-name\` is empty. |
| 2063 |
|
| 2064 |
|
| 2065 |
|
| 2066 |
#### \`userconfig\` |
| 2067 |
|
| 2068 |
* Default: "~/.npmrc" |
| 2069 |
* Type: Path |
| 2070 |
|
| 2071 |
The location of user-level configuration settings. |
| 2072 |
|
| 2073 |
This may be overridden by the \`npm_config_userconfig\` environment variable |
| 2074 |
or the \`--userconfig\` command line option, but may _not_ be overridden by |
| 2075 |
settings in the \`globalconfig\` file. |
| 2076 |
|
| 2077 |
|
| 2078 |
|
| 2079 |
#### \`version\` |
| 2080 |
|
| 2081 |
* Default: false |
| 2082 |
* Type: Boolean |
| 2083 |
|
| 2084 |
If true, output the npm version and exit successfully. |
| 2085 |
|
| 2086 |
Only relevant when specified explicitly on the command line. |
| 2087 |
|
| 2088 |
|
| 2089 |
|
| 2090 |
#### \`versions\` |
| 2091 |
|
| 2092 |
* Default: false |
| 2093 |
* Type: Boolean |
| 2094 |
|
| 2095 |
If true, output the npm version as well as node's \`process.versions\` map and |
| 2096 |
the version in the current working directory's \`package.json\` file if one |
| 2097 |
exists, and exit successfully. |
| 2098 |
|
| 2099 |
Only relevant when specified explicitly on the command line. |
| 2100 |
|
| 2101 |
|
| 2102 |
|
| 2103 |
#### \`viewer\` |
| 2104 |
|
| 2105 |
* Default: "man" on Posix, "browser" on Windows |
| 2106 |
* Type: String |
| 2107 |
|
| 2108 |
The program to use to view help content. |
| 2109 |
|
| 2110 |
Set to \`"browser"\` to view html help content in the default web browser. |
| 2111 |
|
| 2112 |
|
| 2113 |
|
| 2114 |
#### \`which\` |
| 2115 |
|
| 2116 |
* Default: null |
| 2117 |
* Type: null or Number |
| 2118 |
|
| 2119 |
If there are multiple funding sources, which 1-indexed source URL to open. |
| 2120 |
|
| 2121 |
|
| 2122 |
|
| 2123 |
#### \`workspace\` |
| 2124 |
|
| 2125 |
* Default: |
| 2126 |
* Type: String (can be set multiple times) |
| 2127 |
|
| 2128 |
Enable running a command in the context of the configured workspaces of the |
| 2129 |
current project while filtering by running only the workspaces defined by |
| 2130 |
this configuration option. |
| 2131 |
|
| 2132 |
Valid values for the \`workspace\` config are either: |
| 2133 |
|
| 2134 |
* Workspace names |
| 2135 |
* Path to a workspace directory |
| 2136 |
* Path to a parent workspace directory (will result in selecting all |
| 2137 |
workspaces within that folder) |
| 2138 |
|
| 2139 |
When set for the \`npm init\` command, this may be set to the folder of a |
| 2140 |
workspace which does not yet exist, to create the folder and set it up as a |
| 2141 |
brand new workspace within the project. |
| 2142 |
|
| 2143 |
This value is not exported to the environment for child processes. |
| 2144 |
|
| 2145 |
#### \`workspaces\` |
| 2146 |
|
| 2147 |
* Default: null |
| 2148 |
* Type: null or Boolean |
| 2149 |
|
| 2150 |
Set to true to run the command in the context of **all** configured |
| 2151 |
workspaces. |
| 2152 |
|
| 2153 |
Explicitly setting this to false will cause commands like \`install\` to |
| 2154 |
ignore workspaces altogether. When not set explicitly: |
| 2155 |
|
| 2156 |
- Commands that operate on the \`node_modules\` tree (install, update, etc.) |
| 2157 |
will link workspaces into the \`node_modules\` folder. - Commands that do |
| 2158 |
other things (test, exec, publish, etc.) will operate on the root project, |
| 2159 |
_unless_ one or more workspaces are specified in the \`workspace\` config. |
| 2160 |
|
| 2161 |
This value is not exported to the environment for child processes. |
| 2162 |
|
| 2163 |
#### \`workspaces-update\` |
| 2164 |
|
| 2165 |
* Default: true |
| 2166 |
* Type: Boolean |
| 2167 |
|
| 2168 |
If set to true, the npm cli will run an update after operations that may |
| 2169 |
possibly change the workspaces installed to the \`node_modules\` folder. |
| 2170 |
|
| 2171 |
|
| 2172 |
|
| 2173 |
#### \`yes\` |
| 2174 |
|
| 2175 |
* Default: null |
| 2176 |
* Type: null or Boolean |
| 2177 |
|
| 2178 |
Automatically answer "yes" to any prompts that npm might print on the |
| 2179 |
command line. |
| 2180 |
|
| 2181 |
|
| 2182 |
|
| 2183 |
#### \`also\` |
| 2184 |
|
| 2185 |
* Default: null |
| 2186 |
* Type: null, "dev", or "development" |
| 2187 |
* DEPRECATED: Please use --include=dev instead. |
| 2188 |
|
| 2189 |
When set to \`dev\` or \`development\`, this is an alias for \`--include=dev\`. |
| 2190 |
|
| 2191 |
|
| 2192 |
|
| 2193 |
#### \`cache-max\` |
| 2194 |
|
| 2195 |
* Default: Infinity |
| 2196 |
* Type: Number |
| 2197 |
* DEPRECATED: This option has been deprecated in favor of \`--prefer-online\` |
| 2198 |
|
| 2199 |
\`--cache-max=0\` is an alias for \`--prefer-online\` |
| 2200 |
|
| 2201 |
|
| 2202 |
|
| 2203 |
#### \`cache-min\` |
| 2204 |
|
| 2205 |
* Default: 0 |
| 2206 |
* Type: Number |
| 2207 |
* DEPRECATED: This option has been deprecated in favor of \`--prefer-offline\`. |
| 2208 |
|
| 2209 |
\`--cache-min=9999 (or bigger)\` is an alias for \`--prefer-offline\`. |
| 2210 |
|
| 2211 |
|
| 2212 |
|
| 2213 |
#### \`cert\` |
| 2214 |
|
| 2215 |
* Default: null |
| 2216 |
* Type: null or String |
| 2217 |
* DEPRECATED: \`key\` and \`cert\` are no longer used for most registry |
| 2218 |
operations. Use registry scoped \`keyfile\` and \`certfile\` instead. Example: |
| 2219 |
//other-registry.tld/:keyfile=/path/to/key.pem |
| 2220 |
//other-registry.tld/:certfile=/path/to/cert.crt |
| 2221 |
|
| 2222 |
A client certificate to pass when accessing the registry. Values should be |
| 2223 |
in PEM format (Windows calls it "Base-64 encoded X.509 (.CER)") with |
| 2224 |
newlines replaced by the string "\\n". For example: |
| 2225 |
|
| 2226 |
\`\`\`ini |
| 2227 |
cert="-----BEGIN CERTIFICATE-----\\nXXXX\\nXXXX\\n-----END CERTIFICATE-----" |
| 2228 |
\`\`\` |
| 2229 |
|
| 2230 |
It is _not_ the path to a certificate file, though you can set a |
| 2231 |
registry-scoped "certfile" path like |
| 2232 |
"//other-registry.tld/:certfile=/path/to/cert.pem". |
| 2233 |
|
| 2234 |
|
| 2235 |
|
| 2236 |
#### \`dev\` |
| 2237 |
|
| 2238 |
* Default: false |
| 2239 |
* Type: Boolean |
| 2240 |
* DEPRECATED: Please use --include=dev instead. |
| 2241 |
|
| 2242 |
Alias for \`--include=dev\`. |
| 2243 |
|
| 2244 |
|
| 2245 |
|
| 2246 |
#### \`global-style\` |
| 2247 |
|
| 2248 |
* Default: false |
| 2249 |
* Type: Boolean |
| 2250 |
* DEPRECATED: This option has been deprecated in favor of |
| 2251 |
\`--install-strategy=shallow\` |
| 2252 |
|
| 2253 |
Only install direct dependencies in the top level \`node_modules\`, but hoist |
| 2254 |
on deeper dependencies. Sets \`--install-strategy=shallow\`. |
| 2255 |
|
| 2256 |
|
| 2257 |
|
| 2258 |
#### \`init.author.email\` |
| 2259 |
|
| 2260 |
* Default: "" |
| 2261 |
* Type: String |
| 2262 |
* DEPRECATED: Use \`--init-author-email\` instead. |
| 2263 |
|
| 2264 |
Alias for \`--init-author-email\` |
| 2265 |
|
| 2266 |
|
| 2267 |
|
| 2268 |
#### \`init.author.name\` |
| 2269 |
|
| 2270 |
* Default: "" |
| 2271 |
* Type: String |
| 2272 |
* DEPRECATED: Use \`--init-author-name\` instead. |
| 2273 |
|
| 2274 |
Alias for \`--init-author-name\` |
| 2275 |
|
| 2276 |
|
| 2277 |
|
| 2278 |
#### \`init.author.url\` |
| 2279 |
|
| 2280 |
* Default: "" |
| 2281 |
* Type: "" or URL |
| 2282 |
* DEPRECATED: Use \`--init-author-url\` instead. |
| 2283 |
|
| 2284 |
Alias for \`--init-author-url\` |
| 2285 |
|
| 2286 |
|
| 2287 |
|
| 2288 |
#### \`init.license\` |
| 2289 |
|
| 2290 |
* Default: "ISC" |
| 2291 |
* Type: String |
| 2292 |
* DEPRECATED: Use \`--init-license\` instead. |
| 2293 |
|
| 2294 |
Alias for \`--init-license\` |
| 2295 |
|
| 2296 |
|
| 2297 |
|
| 2298 |
#### \`init.module\` |
| 2299 |
|
| 2300 |
* Default: "~/.npm-init.js" |
| 2301 |
* Type: Path |
| 2302 |
* DEPRECATED: Use \`--init-module\` instead. |
| 2303 |
|
| 2304 |
Alias for \`--init-module\` |
| 2305 |
|
| 2306 |
|
| 2307 |
|
| 2308 |
#### \`init.version\` |
| 2309 |
|
| 2310 |
* Default: "1.0.0" |
| 2311 |
* Type: SemVer string |
| 2312 |
* DEPRECATED: Use \`--init-version\` instead. |
| 2313 |
|
| 2314 |
Alias for \`--init-version\` |
| 2315 |
|
| 2316 |
|
| 2317 |
|
| 2318 |
#### \`key\` |
| 2319 |
|
| 2320 |
* Default: null |
| 2321 |
* Type: null or String |
| 2322 |
* DEPRECATED: \`key\` and \`cert\` are no longer used for most registry |
| 2323 |
operations. Use registry scoped \`keyfile\` and \`certfile\` instead. Example: |
| 2324 |
//other-registry.tld/:keyfile=/path/to/key.pem |
| 2325 |
//other-registry.tld/:certfile=/path/to/cert.crt |
| 2326 |
|
| 2327 |
A client key to pass when accessing the registry. Values should be in PEM |
| 2328 |
format with newlines replaced by the string "\\n". For example: |
| 2329 |
|
| 2330 |
\`\`\`ini |
| 2331 |
key="-----BEGIN PRIVATE KEY-----\\nXXXX\\nXXXX\\n-----END PRIVATE KEY-----" |
| 2332 |
\`\`\` |
| 2333 |
|
| 2334 |
It is _not_ the path to a key file, though you can set a registry-scoped |
| 2335 |
"keyfile" path like "//other-registry.tld/:keyfile=/path/to/key.pem". |
| 2336 |
|
| 2337 |
|
| 2338 |
|
| 2339 |
#### \`legacy-bundling\` |
| 2340 |
|
| 2341 |
* Default: false |
| 2342 |
* Type: Boolean |
| 2343 |
* DEPRECATED: This option has been deprecated in favor of |
| 2344 |
\`--install-strategy=nested\` |
| 2345 |
|
| 2346 |
Instead of hoisting package installs in \`node_modules\`, install packages in |
| 2347 |
the same manner that they are depended on. This may cause very deep |
| 2348 |
directory structures and duplicate package installs as there is no |
| 2349 |
de-duplicating. Sets \`--install-strategy=nested\`. |
| 2350 |
|
| 2351 |
|
| 2352 |
|
| 2353 |
#### \`only\` |
| 2354 |
|
| 2355 |
* Default: null |
| 2356 |
* Type: null, "prod", or "production" |
| 2357 |
* DEPRECATED: Use \`--omit=dev\` to omit dev dependencies from the install. |
| 2358 |
|
| 2359 |
When set to \`prod\` or \`production\`, this is an alias for \`--omit=dev\`. |
| 2360 |
|
| 2361 |
|
| 2362 |
|
| 2363 |
#### \`optional\` |
| 2364 |
|
| 2365 |
* Default: null |
| 2366 |
* Type: null or Boolean |
| 2367 |
* DEPRECATED: Use \`--omit=optional\` to exclude optional dependencies, or |
| 2368 |
\`--include=optional\` to include them. |
| 2369 |
|
| 2370 |
Default value does install optional deps unless otherwise omitted. |
| 2371 |
|
| 2372 |
Alias for --include=optional or --omit=optional |
| 2373 |
|
| 2374 |
|
| 2375 |
|
| 2376 |
#### \`production\` |
| 2377 |
|
| 2378 |
* Default: null |
| 2379 |
* Type: null or Boolean |
| 2380 |
* DEPRECATED: Use \`--omit=dev\` instead. |
| 2381 |
|
| 2382 |
Alias for \`--omit=dev\` |
| 2383 |
|
| 2384 |
|
| 2385 |
|
| 2386 |
#### \`shrinkwrap\` |
| 2387 |
|
| 2388 |
* Default: true |
| 2389 |
* Type: Boolean |
| 2390 |
* DEPRECATED: Use the --package-lock setting instead. |
| 2391 |
|
| 2392 |
Alias for --package-lock |
| 2393 |
|
| 2394 |
|
| 2395 |
` |
| 2396 |
|
| 2397 |
exports[`test/lib/docs.js TAP config > all keys 1`] = ` |
| 2398 |
Array [ |
| 2399 |
"_auth", |
| 2400 |
"access", |
| 2401 |
"all", |
| 2402 |
"allow-same-version", |
| 2403 |
"allow-directory", |
| 2404 |
"allow-file", |
| 2405 |
"allow-git", |
| 2406 |
"allow-remote", |
| 2407 |
"allow-scripts", |
| 2408 |
"also", |
| 2409 |
"audit", |
| 2410 |
"audit-level", |
| 2411 |
"auth-type", |
| 2412 |
"before", |
| 2413 |
"bin-links", |
| 2414 |
"browser", |
| 2415 |
"bypass-2fa", |
| 2416 |
"ca", |
| 2417 |
"cache", |
| 2418 |
"cache-max", |
| 2419 |
"cache-min", |
| 2420 |
"cafile", |
| 2421 |
"call", |
| 2422 |
"cert", |
| 2423 |
"cidr", |
| 2424 |
"color", |
| 2425 |
"commit-hooks", |
| 2426 |
"cpu", |
| 2427 |
"dangerously-allow-all-scripts", |
| 2428 |
"depth", |
| 2429 |
"description", |
| 2430 |
"dev", |
| 2431 |
"diff", |
| 2432 |
"diff-ignore-all-space", |
| 2433 |
"diff-name-only", |
| 2434 |
"diff-no-prefix", |
| 2435 |
"diff-dst-prefix", |
| 2436 |
"diff-src-prefix", |
| 2437 |
"diff-text", |
| 2438 |
"diff-unified", |
| 2439 |
"dry-run", |
| 2440 |
"editor", |
| 2441 |
"engine-strict", |
| 2442 |
"expect-result-count", |
| 2443 |
"expect-results", |
| 2444 |
"expires", |
| 2445 |
"fetch-retries", |
| 2446 |
"fetch-retry-factor", |
| 2447 |
"fetch-retry-maxtimeout", |
| 2448 |
"fetch-retry-mintimeout", |
| 2449 |
"fetch-timeout", |
| 2450 |
"force", |
| 2451 |
"foreground-scripts", |
| 2452 |
"format-package-lock", |
| 2453 |
"fund", |
| 2454 |
"git", |
| 2455 |
"git-tag-version", |
| 2456 |
"global", |
| 2457 |
"globalconfig", |
| 2458 |
"global-style", |
| 2459 |
"heading", |
| 2460 |
"https-proxy", |
| 2461 |
"if-present", |
| 2462 |
"ignore-scripts", |
| 2463 |
"include", |
| 2464 |
"include-staged", |
| 2465 |
"include-workspace-root", |
| 2466 |
"include-attestations", |
| 2467 |
"init-author-email", |
| 2468 |
"init-author-name", |
| 2469 |
"init-author-url", |
| 2470 |
"init-license", |
| 2471 |
"init-module", |
| 2472 |
"init-type", |
| 2473 |
"init-version", |
| 2474 |
"init-private", |
| 2475 |
"init.author.email", |
| 2476 |
"init.author.name", |
| 2477 |
"init.author.url", |
| 2478 |
"init.license", |
| 2479 |
"init.module", |
| 2480 |
"init.version", |
| 2481 |
"install-links", |
| 2482 |
"install-strategy", |
| 2483 |
"json", |
| 2484 |
"key", |
| 2485 |
"legacy-bundling", |
| 2486 |
"legacy-peer-deps", |
| 2487 |
"libc", |
| 2488 |
"link", |
| 2489 |
"local-address", |
| 2490 |
"location", |
| 2491 |
"lockfile-version", |
| 2492 |
"loglevel", |
| 2493 |
"logs-dir", |
| 2494 |
"logs-max", |
| 2495 |
"long", |
| 2496 |
"name", |
| 2497 |
"maxsockets", |
| 2498 |
"message", |
| 2499 |
"min-release-age", |
| 2500 |
"node-gyp", |
| 2501 |
"node-options", |
| 2502 |
"noproxy", |
| 2503 |
"offline", |
| 2504 |
"omit", |
| 2505 |
"omit-lockfile-registry-resolved", |
| 2506 |
"only", |
| 2507 |
"orgs", |
| 2508 |
"optional", |
| 2509 |
"os", |
| 2510 |
"otp", |
| 2511 |
"package", |
| 2512 |
"package-lock", |
| 2513 |
"package-lock-only", |
| 2514 |
"pack-destination", |
| 2515 |
"packages", |
| 2516 |
"parseable", |
| 2517 |
"allow-scripts-pending", |
| 2518 |
"allow-scripts-pin", |
| 2519 |
"prefer-dedupe", |
| 2520 |
"prefer-offline", |
| 2521 |
"prefer-online", |
| 2522 |
"prefix", |
| 2523 |
"preid", |
| 2524 |
"production", |
| 2525 |
"progress", |
| 2526 |
"provenance", |
| 2527 |
"provenance-file", |
| 2528 |
"proxy", |
| 2529 |
"read-only", |
| 2530 |
"rebuild-bundle", |
| 2531 |
"registry", |
| 2532 |
"replace-registry-host", |
| 2533 |
"save", |
| 2534 |
"save-bundle", |
| 2535 |
"save-dev", |
| 2536 |
"save-exact", |
| 2537 |
"save-optional", |
| 2538 |
"save-peer", |
| 2539 |
"save-prefix", |
| 2540 |
"save-prod", |
| 2541 |
"sbom-format", |
| 2542 |
"sbom-type", |
| 2543 |
"scope", |
| 2544 |
"scopes", |
| 2545 |
"packages-all", |
| 2546 |
"packages-and-scopes-permission", |
| 2547 |
"orgs-permission", |
| 2548 |
"password", |
| 2549 |
"token-description", |
| 2550 |
"script-shell", |
| 2551 |
"searchexclude", |
| 2552 |
"searchlimit", |
| 2553 |
"searchopts", |
| 2554 |
"searchstaleness", |
| 2555 |
"shell", |
| 2556 |
"shrinkwrap", |
| 2557 |
"sign-git-commit", |
| 2558 |
"sign-git-tag", |
| 2559 |
"strict-peer-deps", |
| 2560 |
"strict-allow-scripts", |
| 2561 |
"strict-ssl", |
| 2562 |
"tag", |
| 2563 |
"tag-version-prefix", |
| 2564 |
"timing", |
| 2565 |
"umask", |
| 2566 |
"unicode", |
| 2567 |
"update-notifier", |
| 2568 |
"usage", |
| 2569 |
"user-agent", |
| 2570 |
"userconfig", |
| 2571 |
"version", |
| 2572 |
"versions", |
| 2573 |
"viewer", |
| 2574 |
"which", |
| 2575 |
"workspace", |
| 2576 |
"workspaces", |
| 2577 |
"workspaces-update", |
| 2578 |
"yes", |
| 2579 |
] |
| 2580 |
` |
| 2581 |
|
| 2582 |
exports[`test/lib/docs.js TAP config > keys that are flattened 1`] = ` |
| 2583 |
Array [ |
| 2584 |
"_auth", |
| 2585 |
"access", |
| 2586 |
"all", |
| 2587 |
"allow-same-version", |
| 2588 |
"allow-directory", |
| 2589 |
"allow-file", |
| 2590 |
"allow-git", |
| 2591 |
"allow-remote", |
| 2592 |
"allow-scripts", |
| 2593 |
"also", |
| 2594 |
"audit", |
| 2595 |
"audit-level", |
| 2596 |
"auth-type", |
| 2597 |
"before", |
| 2598 |
"bin-links", |
| 2599 |
"browser", |
| 2600 |
"bypass-2fa", |
| 2601 |
"ca", |
| 2602 |
"cache", |
| 2603 |
"cache-max", |
| 2604 |
"cache-min", |
| 2605 |
"cafile", |
| 2606 |
"call", |
| 2607 |
"cert", |
| 2608 |
"cidr", |
| 2609 |
"color", |
| 2610 |
"commit-hooks", |
| 2611 |
"cpu", |
| 2612 |
"dangerously-allow-all-scripts", |
| 2613 |
"depth", |
| 2614 |
"description", |
| 2615 |
"dev", |
| 2616 |
"diff", |
| 2617 |
"diff-ignore-all-space", |
| 2618 |
"diff-name-only", |
| 2619 |
"diff-no-prefix", |
| 2620 |
"diff-dst-prefix", |
| 2621 |
"diff-src-prefix", |
| 2622 |
"diff-text", |
| 2623 |
"diff-unified", |
| 2624 |
"dry-run", |
| 2625 |
"editor", |
| 2626 |
"engine-strict", |
| 2627 |
"expires", |
| 2628 |
"fetch-retries", |
| 2629 |
"fetch-retry-factor", |
| 2630 |
"fetch-retry-maxtimeout", |
| 2631 |
"fetch-retry-mintimeout", |
| 2632 |
"fetch-timeout", |
| 2633 |
"force", |
| 2634 |
"foreground-scripts", |
| 2635 |
"format-package-lock", |
| 2636 |
"fund", |
| 2637 |
"git", |
| 2638 |
"git-tag-version", |
| 2639 |
"global", |
| 2640 |
"globalconfig", |
| 2641 |
"global-style", |
| 2642 |
"heading", |
| 2643 |
"https-proxy", |
| 2644 |
"if-present", |
| 2645 |
"ignore-scripts", |
| 2646 |
"include", |
| 2647 |
"include-staged", |
| 2648 |
"include-workspace-root", |
| 2649 |
"include-attestations", |
| 2650 |
"init-private", |
| 2651 |
"install-links", |
| 2652 |
"install-strategy", |
| 2653 |
"json", |
| 2654 |
"key", |
| 2655 |
"legacy-bundling", |
| 2656 |
"legacy-peer-deps", |
| 2657 |
"libc", |
| 2658 |
"local-address", |
| 2659 |
"location", |
| 2660 |
"lockfile-version", |
| 2661 |
"loglevel", |
| 2662 |
"name", |
| 2663 |
"maxsockets", |
| 2664 |
"message", |
| 2665 |
"min-release-age", |
| 2666 |
"node-gyp", |
| 2667 |
"noproxy", |
| 2668 |
"offline", |
| 2669 |
"omit", |
| 2670 |
"omit-lockfile-registry-resolved", |
| 2671 |
"only", |
| 2672 |
"orgs", |
| 2673 |
"optional", |
| 2674 |
"os", |
| 2675 |
"otp", |
| 2676 |
"package", |
| 2677 |
"package-lock", |
| 2678 |
"package-lock-only", |
| 2679 |
"pack-destination", |
| 2680 |
"packages", |
| 2681 |
"parseable", |
| 2682 |
"allow-scripts-pending", |
| 2683 |
"allow-scripts-pin", |
| 2684 |
"prefer-dedupe", |
| 2685 |
"prefer-offline", |
| 2686 |
"prefer-online", |
| 2687 |
"preid", |
| 2688 |
"production", |
| 2689 |
"progress", |
| 2690 |
"provenance", |
| 2691 |
"provenance-file", |
| 2692 |
"proxy", |
| 2693 |
"read-only", |
| 2694 |
"rebuild-bundle", |
| 2695 |
"registry", |
| 2696 |
"replace-registry-host", |
| 2697 |
"save", |
| 2698 |
"save-bundle", |
| 2699 |
"save-dev", |
| 2700 |
"save-exact", |
| 2701 |
"save-optional", |
| 2702 |
"save-peer", |
| 2703 |
"save-prefix", |
| 2704 |
"save-prod", |
| 2705 |
"sbom-format", |
| 2706 |
"sbom-type", |
| 2707 |
"scope", |
| 2708 |
"scopes", |
| 2709 |
"packages-all", |
| 2710 |
"packages-and-scopes-permission", |
| 2711 |
"orgs-permission", |
| 2712 |
"password", |
| 2713 |
"token-description", |
| 2714 |
"script-shell", |
| 2715 |
"searchexclude", |
| 2716 |
"searchlimit", |
| 2717 |
"searchopts", |
| 2718 |
"searchstaleness", |
| 2719 |
"shell", |
| 2720 |
"shrinkwrap", |
| 2721 |
"sign-git-commit", |
| 2722 |
"sign-git-tag", |
| 2723 |
"strict-peer-deps", |
| 2724 |
"strict-allow-scripts", |
| 2725 |
"strict-ssl", |
| 2726 |
"tag", |
| 2727 |
"tag-version-prefix", |
| 2728 |
"umask", |
| 2729 |
"unicode", |
| 2730 |
"user-agent", |
| 2731 |
"workspace", |
| 2732 |
"workspaces", |
| 2733 |
"workspaces-update", |
| 2734 |
] |
| 2735 |
` |
| 2736 |
|
| 2737 |
exports[`test/lib/docs.js TAP config > keys that are not flattened 1`] = ` |
| 2738 |
Array [ |
| 2739 |
"expect-result-count", |
| 2740 |
"expect-results", |
| 2741 |
"init-author-email", |
| 2742 |
"init-author-name", |
| 2743 |
"init-author-url", |
| 2744 |
"init-license", |
| 2745 |
"init-module", |
| 2746 |
"init-type", |
| 2747 |
"init-version", |
| 2748 |
"init.author.email", |
| 2749 |
"init.author.name", |
| 2750 |
"init.author.url", |
| 2751 |
"init.license", |
| 2752 |
"init.module", |
| 2753 |
"init.version", |
| 2754 |
"link", |
| 2755 |
"logs-dir", |
| 2756 |
"logs-max", |
| 2757 |
"long", |
| 2758 |
"node-options", |
| 2759 |
"prefix", |
| 2760 |
"timing", |
| 2761 |
"update-notifier", |
| 2762 |
"usage", |
| 2763 |
"userconfig", |
| 2764 |
"version", |
| 2765 |
"versions", |
| 2766 |
"viewer", |
| 2767 |
"which", |
| 2768 |
"yes", |
| 2769 |
] |
| 2770 |
` |
| 2771 |
|
| 2772 |
exports[`test/lib/docs.js TAP flat options > full flat options object 1`] = ` |
| 2773 |
Object { |
| 2774 |
"_auth": null, |
| 2775 |
"access": null, |
| 2776 |
"all": false, |
| 2777 |
"allowDirectory": "all", |
| 2778 |
"allowFile": "all", |
| 2779 |
"allowGit": "all", |
| 2780 |
"allowRemote": "all", |
| 2781 |
"allowSameVersion": false, |
| 2782 |
"allowScripts": Array [], |
| 2783 |
"allowScriptsPending": false, |
| 2784 |
"allowScriptsPin": true, |
| 2785 |
"audit": true, |
| 2786 |
"auditLevel": null, |
| 2787 |
"authType": "web", |
| 2788 |
"before": null, |
| 2789 |
"binLinks": true, |
| 2790 |
"browser": null, |
| 2791 |
"bypass-2fa": false, |
| 2792 |
"ca": null, |
| 2793 |
"cache": "{CWD}/cache/_cacache", |
| 2794 |
"call": "", |
| 2795 |
"cert": null, |
| 2796 |
"cidr": null, |
| 2797 |
"color": false, |
| 2798 |
"commitHooks": true, |
| 2799 |
"cpu": null, |
| 2800 |
"dangerouslyAllowAllScripts": false, |
| 2801 |
"defaultTag": "latest", |
| 2802 |
"depth": null, |
| 2803 |
"diff": Array [], |
| 2804 |
"diffDstPrefix": "b/", |
| 2805 |
"diffIgnoreAllSpace": false, |
| 2806 |
"diffNameOnly": false, |
| 2807 |
"diffNoPrefix": false, |
| 2808 |
"diffSrcPrefix": "a/", |
| 2809 |
"diffText": false, |
| 2810 |
"diffUnified": 3, |
| 2811 |
"dryRun": false, |
| 2812 |
"editor": "{EDITOR}", |
| 2813 |
"engineStrict": false, |
| 2814 |
"expires": null, |
| 2815 |
"force": false, |
| 2816 |
"foregroundScripts": false, |
| 2817 |
"formatPackageLock": true, |
| 2818 |
"fund": true, |
| 2819 |
"git": "git", |
| 2820 |
"gitTagVersion": true, |
| 2821 |
"global": false, |
| 2822 |
"globalconfig": "{CWD}/global/etc/npmrc", |
| 2823 |
"heading": "npm", |
| 2824 |
"httpsProxy": null, |
| 2825 |
"ifPresent": false, |
| 2826 |
"ignoreScripts": false, |
| 2827 |
"includeAttestations": false, |
| 2828 |
"includeStaged": false, |
| 2829 |
"includeWorkspaceRoot": false, |
| 2830 |
"initPrivate": false, |
| 2831 |
"installLinks": false, |
| 2832 |
"installStrategy": "hoisted", |
| 2833 |
"json": false, |
| 2834 |
"key": null, |
| 2835 |
"legacyPeerDeps": false, |
| 2836 |
"libc": null, |
| 2837 |
"localAddress": null, |
| 2838 |
"location": "user", |
| 2839 |
"lockfileVersion": null, |
| 2840 |
"logColor": false, |
| 2841 |
"maxSockets": 15, |
| 2842 |
"message": "%s", |
| 2843 |
"name": null, |
| 2844 |
"nodeBin": "{NODE}", |
| 2845 |
"nodeGyp": "{CWD}/node_modules/node-gyp/bin/node-gyp.js", |
| 2846 |
"nodeVersion": "2.2.2", |
| 2847 |
"noProxy": "", |
| 2848 |
"npmBin": "{CWD}/other/bin/npm-cli.js", |
| 2849 |
"npmCommand": "version", |
| 2850 |
"npmVersion": "3.3.3", |
| 2851 |
"npxCache": "{CWD}/cache/_npx", |
| 2852 |
"offline": false, |
| 2853 |
"omit": Array [], |
| 2854 |
"omitLockfileRegistryResolved": false, |
| 2855 |
"orgs": null, |
| 2856 |
"orgsPermission": null, |
| 2857 |
"os": null, |
| 2858 |
"otp": null, |
| 2859 |
"package": Array [], |
| 2860 |
"packageLock": true, |
| 2861 |
"packageLockOnly": false, |
| 2862 |
"packages": Array [], |
| 2863 |
"packagesAll": false, |
| 2864 |
"packagesAndScopesPermission": null, |
| 2865 |
"packDestination": ".", |
| 2866 |
"parseable": false, |
| 2867 |
"password": null, |
| 2868 |
"preferDedupe": false, |
| 2869 |
"preferOffline": false, |
| 2870 |
"preferOnline": false, |
| 2871 |
"preid": "", |
| 2872 |
"progress": false, |
| 2873 |
"projectScope": "", |
| 2874 |
"provenance": false, |
| 2875 |
"provenanceFile": null, |
| 2876 |
"proxy": null, |
| 2877 |
"readOnly": false, |
| 2878 |
"rebuildBundle": true, |
| 2879 |
"registry": "https://registry.npmjs.org/", |
| 2880 |
"replaceRegistryHost": "npmjs", |
| 2881 |
"retry": Object { |
| 2882 |
"factor": 10, |
| 2883 |
"maxTimeout": 60000, |
| 2884 |
"minTimeout": 10000, |
| 2885 |
"retries": 0, |
| 2886 |
}, |
| 2887 |
"save": true, |
| 2888 |
"saveBundle": false, |
| 2889 |
"savePrefix": "^", |
| 2890 |
"sbomFormat": null, |
| 2891 |
"sbomType": "library", |
| 2892 |
"scope": "", |
| 2893 |
"scopes": null, |
| 2894 |
"scriptShell": undefined, |
| 2895 |
"search": Object { |
| 2896 |
"description": true, |
| 2897 |
"exclude": "", |
| 2898 |
"limit": 20, |
| 2899 |
"opts": Null Object {}, |
| 2900 |
"staleness": 900, |
| 2901 |
}, |
| 2902 |
"shell": "{SHELL}", |
| 2903 |
"signGitCommit": false, |
| 2904 |
"signGitTag": false, |
| 2905 |
"silent": false, |
| 2906 |
"strictAllowScripts": false, |
| 2907 |
"strictPeerDeps": false, |
| 2908 |
"strictSSL": true, |
| 2909 |
"tagVersionPrefix": "v", |
| 2910 |
"timeout": 300000, |
| 2911 |
"tokenDescription": null, |
| 2912 |
"tufCache": "{CWD}/cache/_tuf", |
| 2913 |
"umask": 0, |
| 2914 |
"unicode": false, |
| 2915 |
"userAgent": "npm/1.1.1 node/2.2.2 {PLATFORM} {ARCH} workspaces/false ci/{ci}", |
| 2916 |
"workspacesEnabled": true, |
| 2917 |
"workspacesUpdate": true, |
| 2918 |
} |
| 2919 |
` |
| 2920 |
|
| 2921 |
exports[`test/lib/docs.js TAP shorthands > docs 1`] = ` |
| 2922 |
* \`-a\`: \`--all\` |
| 2923 |
* \`--enjoy-by\`: \`--before\` |
| 2924 |
* \`-c\`: \`--call\` |
| 2925 |
* \`--desc\`: \`--description\` |
| 2926 |
* \`-f\`: \`--force\` |
| 2927 |
* \`-g\`: \`--global\` |
| 2928 |
* \`--iwr\`: \`--include-workspace-root\` |
| 2929 |
* \`-L\`: \`--location\` |
| 2930 |
* \`-d\`: \`--loglevel info\` |
| 2931 |
* \`-s\`: \`--loglevel silent\` |
| 2932 |
* \`--silent\`: \`--loglevel silent\` |
| 2933 |
* \`--ddd\`: \`--loglevel silly\` |
| 2934 |
* \`--dd\`: \`--loglevel verbose\` |
| 2935 |
* \`--verbose\`: \`--loglevel verbose\` |
| 2936 |
* \`-q\`: \`--loglevel warn\` |
| 2937 |
* \`--quiet\`: \`--loglevel warn\` |
| 2938 |
* \`-l\`: \`--long\` |
| 2939 |
* \`-m\`: \`--message\` |
| 2940 |
* \`--local\`: \`--no-global\` |
| 2941 |
* \`-n\`: \`--no-yes\` |
| 2942 |
* \`--no\`: \`--no-yes\` |
| 2943 |
* \`-p\`: \`--parseable\` |
| 2944 |
* \`--porcelain\`: \`--parseable\` |
| 2945 |
* \`-C\`: \`--prefix\` |
| 2946 |
* \`--readonly\`: \`--read-only\` |
| 2947 |
* \`--reg\`: \`--registry\` |
| 2948 |
* \`-S\`: \`--save\` |
| 2949 |
* \`-B\`: \`--save-bundle\` |
| 2950 |
* \`-D\`: \`--save-dev\` |
| 2951 |
* \`-E\`: \`--save-exact\` |
| 2952 |
* \`-O\`: \`--save-optional\` |
| 2953 |
* \`-P\`: \`--save-prod\` |
| 2954 |
* \`-?\`: \`--usage\` |
| 2955 |
* \`-h\`: \`--usage\` |
| 2956 |
* \`-H\`: \`--usage\` |
| 2957 |
* \`--help\`: \`--usage\` |
| 2958 |
* \`-v\`: \`--version\` |
| 2959 |
* \`-w\`: \`--workspace\` |
| 2960 |
* \`--ws\`: \`--workspaces\` |
| 2961 |
* \`-y\`: \`--yes\` |
| 2962 |
` |
| 2963 |
|
| 2964 |
exports[`test/lib/docs.js TAP usage access > must match snapshot 1`] = ` |
| 2965 |
Set access level on published packages |
| 2966 |
|
| 2967 |
Usage: |
| 2968 |
npm access list packages [<user>|<scope>|<scope:team>] [<package>] |
| 2969 |
npm access list collaborators [<package> [<user>]] |
| 2970 |
npm access get status [<package>] |
| 2971 |
npm access set status=public|private [<package>] |
| 2972 |
npm access set mfa=none|publish|automation [<package>] |
| 2973 |
npm access grant <read-only|read-write> <scope:team> [<package>] |
| 2974 |
npm access revoke <scope:team> [<package>] |
| 2975 |
|
| 2976 |
Options: |
| 2977 |
[--json] [--otp <otp>] [--registry <registry>] |
| 2978 |
|
| 2979 |
--json |
| 2980 |
Whether or not to output JSON data, rather than the normal output. |
| 2981 |
|
| 2982 |
--otp |
| 2983 |
This is a one-time password from a two-factor authenticator. It's needed |
| 2984 |
|
| 2985 |
--registry |
| 2986 |
The base URL of the npm registry. |
| 2987 |
|
| 2988 |
|
| 2989 |
Run "npm help access" for more info |
| 2990 |
|
| 2991 |
\`\`\`bash |
| 2992 |
npm access list packages [<user>|<scope>|<scope:team>] [<package>] |
| 2993 |
npm access list collaborators [<package> [<user>]] |
| 2994 |
npm access get status [<package>] |
| 2995 |
npm access set status=public|private [<package>] |
| 2996 |
npm access set mfa=none|publish|automation [<package>] |
| 2997 |
npm access grant <read-only|read-write> <scope:team> [<package>] |
| 2998 |
npm access revoke <scope:team> [<package>] |
| 2999 |
\`\`\` |
| 3000 |
|
| 3001 |
Note: This command is unaware of workspaces. |
| 3002 |
|
| 3003 |
#### \`json\` |
| 3004 |
#### \`otp\` |
| 3005 |
#### \`registry\` |
| 3006 |
` |
| 3007 |
|
| 3008 |
exports[`test/lib/docs.js TAP usage adduser > must match snapshot 1`] = ` |
| 3009 |
Add a registry user account |
| 3010 |
|
| 3011 |
Usage: |
| 3012 |
npm adduser |
| 3013 |
|
| 3014 |
Options: |
| 3015 |
[--registry <registry>] [--scope <@scope>] [--auth-type <legacy|web>] |
| 3016 |
|
| 3017 |
--registry |
| 3018 |
The base URL of the npm registry. |
| 3019 |
|
| 3020 |
--scope |
| 3021 |
Associate an operation with a scope for a scoped registry. |
| 3022 |
|
| 3023 |
--auth-type |
| 3024 |
What authentication strategy to use with \`login\`. |
| 3025 |
|
| 3026 |
|
| 3027 |
alias: add-user |
| 3028 |
|
| 3029 |
Run "npm help adduser" for more info |
| 3030 |
|
| 3031 |
\`\`\`bash |
| 3032 |
npm adduser |
| 3033 |
|
| 3034 |
alias: add-user |
| 3035 |
\`\`\` |
| 3036 |
|
| 3037 |
Note: This command is unaware of workspaces. |
| 3038 |
|
| 3039 |
#### \`registry\` |
| 3040 |
#### \`scope\` |
| 3041 |
#### \`auth-type\` |
| 3042 |
` |
| 3043 |
|
| 3044 |
exports[`test/lib/docs.js TAP usage approve-scripts > must match snapshot 1`] = ` |
| 3045 |
Approve install scripts for specific dependencies |
| 3046 |
|
| 3047 |
Usage: |
| 3048 |
npm approve-scripts <pkg> [<pkg> ...] |
| 3049 |
npm approve-scripts --all |
| 3050 |
npm approve-scripts --allow-scripts-pending |
| 3051 |
|
| 3052 |
Options: |
| 3053 |
[-a|--all] [--allow-scripts-pending] [--no-allow-scripts-pin] [--json] |
| 3054 |
|
| 3055 |
-a|--all |
| 3056 |
When running \`npm outdated\` and \`npm ls\`, setting \`--all\` will show |
| 3057 |
|
| 3058 |
--allow-scripts-pending |
| 3059 |
List packages with install scripts that are not yet covered by the |
| 3060 |
|
| 3061 |
--allow-scripts-pin |
| 3062 |
Write pinned (\`pkg@version\`) entries when approving install scripts. |
| 3063 |
|
| 3064 |
--json |
| 3065 |
Whether or not to output JSON data, rather than the normal output. |
| 3066 |
|
| 3067 |
|
| 3068 |
Run "npm help approve-scripts" for more info |
| 3069 |
|
| 3070 |
\`\`\`bash |
| 3071 |
npm approve-scripts <pkg> [<pkg> ...] |
| 3072 |
npm approve-scripts --all |
| 3073 |
npm approve-scripts --allow-scripts-pending |
| 3074 |
\`\`\` |
| 3075 |
|
| 3076 |
Note: This command is unaware of workspaces. |
| 3077 |
|
| 3078 |
#### \`all\` |
| 3079 |
#### \`allow-scripts-pending\` |
| 3080 |
#### \`allow-scripts-pin\` |
| 3081 |
#### \`json\` |
| 3082 |
` |
| 3083 |
|
| 3084 |
exports[`test/lib/docs.js TAP usage audit > must match snapshot 1`] = ` |
| 3085 |
Run a security audit |
| 3086 |
|
| 3087 |
Usage: |
| 3088 |
npm audit [fix|signatures] |
| 3089 |
|
| 3090 |
Options: |
| 3091 |
[--audit-level <info|low|moderate|high|critical|none>] [--dry-run] [-f|--force] |
| 3092 |
[--json] [--package-lock-only] [--no-package-lock] |
| 3093 |
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] |
| 3094 |
[--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]] |
| 3095 |
[--foreground-scripts] [--ignore-scripts] [--include-attestations] |
| 3096 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 3097 |
[--workspaces] [--include-workspace-root] [--install-links] |
| 3098 |
|
| 3099 |
--audit-level |
| 3100 |
The minimum level of vulnerability for \`npm audit\` to exit with |
| 3101 |
|
| 3102 |
--dry-run |
| 3103 |
Indicates that you don't want npm to make any changes and that it should |
| 3104 |
|
| 3105 |
-f|--force |
| 3106 |
Removes various protections against unfortunate side effects, common |
| 3107 |
|
| 3108 |
--json |
| 3109 |
Whether or not to output JSON data, rather than the normal output. |
| 3110 |
|
| 3111 |
--package-lock-only |
| 3112 |
If set to true, the current operation will only use the \`package-lock.json\`, |
| 3113 |
|
| 3114 |
--package-lock |
| 3115 |
If set to false, then ignore \`package-lock.json\` files when installing. |
| 3116 |
|
| 3117 |
--omit |
| 3118 |
Dependency types to omit from the installation tree on disk. |
| 3119 |
|
| 3120 |
--include |
| 3121 |
Option that allows for defining which types of dependencies to install. |
| 3122 |
|
| 3123 |
--foreground-scripts |
| 3124 |
Run all build scripts (ie, \`preinstall\`, \`install\`, and |
| 3125 |
|
| 3126 |
--ignore-scripts |
| 3127 |
If true, npm does not run scripts specified in package.json files. |
| 3128 |
|
| 3129 |
--include-attestations |
| 3130 |
When used with \`npm audit signatures --json\`, includes the full |
| 3131 |
|
| 3132 |
-w|--workspace |
| 3133 |
Enable running a command in the context of the configured workspaces of the |
| 3134 |
|
| 3135 |
--workspaces |
| 3136 |
Set to true to run the command in the context of **all** configured |
| 3137 |
|
| 3138 |
--include-workspace-root |
| 3139 |
Include the workspace root when workspaces are enabled for a command. |
| 3140 |
|
| 3141 |
--install-links |
| 3142 |
When set file: protocol dependencies will be packed and installed as |
| 3143 |
|
| 3144 |
|
| 3145 |
Run "npm help audit" for more info |
| 3146 |
|
| 3147 |
\`\`\`bash |
| 3148 |
npm audit [fix|signatures] |
| 3149 |
\`\`\` |
| 3150 |
|
| 3151 |
#### \`audit-level\` |
| 3152 |
#### \`dry-run\` |
| 3153 |
#### \`force\` |
| 3154 |
#### \`json\` |
| 3155 |
#### \`package-lock-only\` |
| 3156 |
#### \`package-lock\` |
| 3157 |
#### \`omit\` |
| 3158 |
#### \`include\` |
| 3159 |
#### \`foreground-scripts\` |
| 3160 |
#### \`ignore-scripts\` |
| 3161 |
#### \`include-attestations\` |
| 3162 |
#### \`workspace\` |
| 3163 |
#### \`workspaces\` |
| 3164 |
#### \`include-workspace-root\` |
| 3165 |
#### \`install-links\` |
| 3166 |
` |
| 3167 |
|
| 3168 |
exports[`test/lib/docs.js TAP usage bugs > must match snapshot 1`] = ` |
| 3169 |
Report bugs for a package in a web browser |
| 3170 |
|
| 3171 |
Usage: |
| 3172 |
npm bugs [<pkgname> [<pkgname> ...]] |
| 3173 |
|
| 3174 |
Options: |
| 3175 |
[--no-browser|--browser <browser>] [--registry <registry>] |
| 3176 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 3177 |
[--workspaces] [--include-workspace-root] |
| 3178 |
|
| 3179 |
--browser |
| 3180 |
The browser that is called by npm commands to open websites. |
| 3181 |
|
| 3182 |
--registry |
| 3183 |
The base URL of the npm registry. |
| 3184 |
|
| 3185 |
-w|--workspace |
| 3186 |
Enable running a command in the context of the configured workspaces of the |
| 3187 |
|
| 3188 |
--workspaces |
| 3189 |
Set to true to run the command in the context of **all** configured |
| 3190 |
|
| 3191 |
--include-workspace-root |
| 3192 |
Include the workspace root when workspaces are enabled for a command. |
| 3193 |
|
| 3194 |
|
| 3195 |
alias: issues |
| 3196 |
|
| 3197 |
Run "npm help bugs" for more info |
| 3198 |
|
| 3199 |
\`\`\`bash |
| 3200 |
npm bugs [<pkgname> [<pkgname> ...]] |
| 3201 |
|
| 3202 |
alias: issues |
| 3203 |
\`\`\` |
| 3204 |
|
| 3205 |
#### \`browser\` |
| 3206 |
#### \`registry\` |
| 3207 |
#### \`workspace\` |
| 3208 |
#### \`workspaces\` |
| 3209 |
#### \`include-workspace-root\` |
| 3210 |
` |
| 3211 |
|
| 3212 |
exports[`test/lib/docs.js TAP usage cache > must match snapshot 1`] = ` |
| 3213 |
Manipulates packages and npx cache |
| 3214 |
|
| 3215 |
Usage: |
| 3216 |
npm cache add <package-spec> |
| 3217 |
npm cache clean [<key>] |
| 3218 |
npm cache ls [<name>@<version>] |
| 3219 |
npm cache verify |
| 3220 |
npm cache npx ls |
| 3221 |
npm cache npx rm [<key>...] |
| 3222 |
npm cache npx info <key>... |
| 3223 |
|
| 3224 |
Options: |
| 3225 |
[--cache <cache>] |
| 3226 |
|
| 3227 |
--cache |
| 3228 |
The location of npm's cache directory. |
| 3229 |
|
| 3230 |
|
| 3231 |
Run "npm help cache" for more info |
| 3232 |
|
| 3233 |
\`\`\`bash |
| 3234 |
npm cache add <package-spec> |
| 3235 |
npm cache clean [<key>] |
| 3236 |
npm cache ls [<name>@<version>] |
| 3237 |
npm cache verify |
| 3238 |
npm cache npx ls |
| 3239 |
npm cache npx rm [<key>...] |
| 3240 |
npm cache npx info <key>... |
| 3241 |
\`\`\` |
| 3242 |
|
| 3243 |
Note: This command is unaware of workspaces. |
| 3244 |
|
| 3245 |
#### \`cache\` |
| 3246 |
` |
| 3247 |
|
| 3248 |
exports[`test/lib/docs.js TAP usage ci > must match snapshot 1`] = ` |
| 3249 |
Clean install a project |
| 3250 |
|
| 3251 |
Usage: |
| 3252 |
npm ci |
| 3253 |
|
| 3254 |
Options: |
| 3255 |
[--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling] |
| 3256 |
[--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] |
| 3257 |
[--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]] |
| 3258 |
[--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] |
| 3259 |
[--allow-directory <all|none|root>] [--allow-file <all|none|root>] |
| 3260 |
[--allow-git <all|none|root>] [--allow-remote <all|none|root>] |
| 3261 |
[--allow-scripts <package-list> [--allow-scripts <package-list> ...]] |
| 3262 |
[--strict-allow-scripts] [--dangerously-allow-all-scripts] [--no-audit] |
| 3263 |
[--no-bin-links] [--no-fund] [--dry-run] |
| 3264 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 3265 |
[--workspaces] [--include-workspace-root] [--install-links] |
| 3266 |
|
| 3267 |
--install-strategy |
| 3268 |
Sets the strategy for installing packages in node_modules. |
| 3269 |
|
| 3270 |
--legacy-bundling |
| 3271 |
Instead of hoisting package installs in \`node_modules\`, install packages |
| 3272 |
|
| 3273 |
--global-style |
| 3274 |
Only install direct dependencies in the top level \`node_modules\`, |
| 3275 |
|
| 3276 |
--omit |
| 3277 |
Dependency types to omit from the installation tree on disk. |
| 3278 |
|
| 3279 |
--include |
| 3280 |
Option that allows for defining which types of dependencies to install. |
| 3281 |
|
| 3282 |
--strict-peer-deps |
| 3283 |
If set to \`true\`, and \`--legacy-peer-deps\` is not set, then _any_ |
| 3284 |
|
| 3285 |
--foreground-scripts |
| 3286 |
Run all build scripts (ie, \`preinstall\`, \`install\`, and |
| 3287 |
|
| 3288 |
--ignore-scripts |
| 3289 |
If true, npm does not run scripts specified in package.json files. |
| 3290 |
|
| 3291 |
--allow-directory |
| 3292 |
Limits the ability for npm to install dependencies from directories. |
| 3293 |
|
| 3294 |
--allow-file |
| 3295 |
Limits the ability for npm to install dependencies from tarball files. |
| 3296 |
|
| 3297 |
--allow-git |
| 3298 |
Limits the ability for npm to fetch dependencies from git references. |
| 3299 |
|
| 3300 |
--allow-remote |
| 3301 |
Limits the ability for npm to fetch dependencies from urls. |
| 3302 |
|
| 3303 |
--allow-scripts |
| 3304 |
Comma-separated list of packages whose install-time lifecycle scripts |
| 3305 |
|
| 3306 |
--strict-allow-scripts |
| 3307 |
If \`true\`, turn the install-script policy from a warning into a hard |
| 3308 |
|
| 3309 |
--dangerously-allow-all-scripts |
| 3310 |
If \`true\`, bypass the \`allowScripts\` policy entirely and run every |
| 3311 |
|
| 3312 |
--audit |
| 3313 |
When "true" submit audit reports alongside the current npm command to the |
| 3314 |
|
| 3315 |
--bin-links |
| 3316 |
Tells npm to create symlinks (or \`.cmd\` shims on Windows) for package |
| 3317 |
|
| 3318 |
--fund |
| 3319 |
When "true" displays the message at the end of each \`npm install\` |
| 3320 |
|
| 3321 |
--dry-run |
| 3322 |
Indicates that you don't want npm to make any changes and that it should |
| 3323 |
|
| 3324 |
-w|--workspace |
| 3325 |
Enable running a command in the context of the configured workspaces of the |
| 3326 |
|
| 3327 |
--workspaces |
| 3328 |
Set to true to run the command in the context of **all** configured |
| 3329 |
|
| 3330 |
--include-workspace-root |
| 3331 |
Include the workspace root when workspaces are enabled for a command. |
| 3332 |
|
| 3333 |
--install-links |
| 3334 |
When set file: protocol dependencies will be packed and installed as |
| 3335 |
|
| 3336 |
|
| 3337 |
aliases: clean-install, ic, install-clean, isntall-clean |
| 3338 |
|
| 3339 |
Run "npm help ci" for more info |
| 3340 |
|
| 3341 |
\`\`\`bash |
| 3342 |
npm ci |
| 3343 |
|
| 3344 |
aliases: clean-install, ic, install-clean, isntall-clean |
| 3345 |
\`\`\` |
| 3346 |
|
| 3347 |
#### \`install-strategy\` |
| 3348 |
#### \`legacy-bundling\` |
| 3349 |
#### \`global-style\` |
| 3350 |
#### \`omit\` |
| 3351 |
#### \`include\` |
| 3352 |
#### \`strict-peer-deps\` |
| 3353 |
#### \`foreground-scripts\` |
| 3354 |
#### \`ignore-scripts\` |
| 3355 |
#### \`allow-directory\` |
| 3356 |
#### \`allow-file\` |
| 3357 |
#### \`allow-git\` |
| 3358 |
#### \`allow-remote\` |
| 3359 |
#### \`allow-scripts\` |
| 3360 |
#### \`strict-allow-scripts\` |
| 3361 |
#### \`dangerously-allow-all-scripts\` |
| 3362 |
#### \`audit\` |
| 3363 |
#### \`bin-links\` |
| 3364 |
#### \`fund\` |
| 3365 |
#### \`dry-run\` |
| 3366 |
#### \`workspace\` |
| 3367 |
#### \`workspaces\` |
| 3368 |
#### \`include-workspace-root\` |
| 3369 |
#### \`install-links\` |
| 3370 |
` |
| 3371 |
|
| 3372 |
exports[`test/lib/docs.js TAP usage completion > must match snapshot 1`] = ` |
| 3373 |
Tab Completion for npm |
| 3374 |
|
| 3375 |
Usage: |
| 3376 |
npm completion |
| 3377 |
|
| 3378 |
Options: |
| 3379 |
|
| 3380 |
|
| 3381 |
Run "npm help completion" for more info |
| 3382 |
|
| 3383 |
\`\`\`bash |
| 3384 |
npm completion |
| 3385 |
\`\`\` |
| 3386 |
|
| 3387 |
Note: This command is unaware of workspaces. |
| 3388 |
|
| 3389 |
NO PARAMS |
| 3390 |
` |
| 3391 |
|
| 3392 |
exports[`test/lib/docs.js TAP usage config > must match snapshot 1`] = ` |
| 3393 |
Manage the npm configuration files |
| 3394 |
|
| 3395 |
Usage: |
| 3396 |
npm config set <key>=<value> [<key>=<value> ...] |
| 3397 |
npm config get [<key> [<key> ...]] |
| 3398 |
npm config delete <key> [<key> ...] |
| 3399 |
npm config list [--json] |
| 3400 |
npm config edit |
| 3401 |
npm config fix |
| 3402 |
|
| 3403 |
Options: |
| 3404 |
[--json] [-g|--global] [--editor <editor>] [-L|--location <global|user|project>] |
| 3405 |
[-l|--long] |
| 3406 |
|
| 3407 |
--json |
| 3408 |
Whether or not to output JSON data, rather than the normal output. |
| 3409 |
|
| 3410 |
-g|--global |
| 3411 |
Operates in "global" mode, so that packages are installed into the |
| 3412 |
|
| 3413 |
--editor |
| 3414 |
The command to run for \`npm edit\` and \`npm config edit\`. |
| 3415 |
|
| 3416 |
-L|--location |
| 3417 |
When passed to \`npm config\` this refers to which config file to use. |
| 3418 |
|
| 3419 |
-l|--long |
| 3420 |
Show extended information in \`ls\`, \`search\`, and \`help-search\`. |
| 3421 |
|
| 3422 |
|
| 3423 |
alias: c |
| 3424 |
|
| 3425 |
Run "npm help config" for more info |
| 3426 |
|
| 3427 |
\`\`\`bash |
| 3428 |
npm config set <key>=<value> [<key>=<value> ...] |
| 3429 |
npm config get [<key> [<key> ...]] |
| 3430 |
npm config delete <key> [<key> ...] |
| 3431 |
npm config list [--json] |
| 3432 |
npm config edit |
| 3433 |
npm config fix |
| 3434 |
|
| 3435 |
alias: c |
| 3436 |
\`\`\` |
| 3437 |
|
| 3438 |
Note: This command is unaware of workspaces. |
| 3439 |
|
| 3440 |
#### \`json\` |
| 3441 |
#### \`global\` |
| 3442 |
#### \`editor\` |
| 3443 |
#### \`location\` |
| 3444 |
#### \`long\` |
| 3445 |
` |
| 3446 |
|
| 3447 |
exports[`test/lib/docs.js TAP usage dedupe > must match snapshot 1`] = ` |
| 3448 |
Reduce duplication in the package tree |
| 3449 |
|
| 3450 |
Usage: |
| 3451 |
npm dedupe |
| 3452 |
|
| 3453 |
Options: |
| 3454 |
[--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling] |
| 3455 |
[--global-style] [--strict-peer-deps] [--no-package-lock] |
| 3456 |
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] |
| 3457 |
[--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]] |
| 3458 |
[--ignore-scripts] [--allow-directory <all|none|root>] |
| 3459 |
[--allow-file <all|none|root>] [--allow-git <all|none|root>] |
| 3460 |
[--allow-remote <all|none|root>] [--no-audit] [--no-bin-links] [--no-fund] |
| 3461 |
[--dry-run] |
| 3462 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 3463 |
[--workspaces] [--include-workspace-root] [--install-links] |
| 3464 |
|
| 3465 |
--install-strategy |
| 3466 |
Sets the strategy for installing packages in node_modules. |
| 3467 |
|
| 3468 |
--legacy-bundling |
| 3469 |
Instead of hoisting package installs in \`node_modules\`, install packages |
| 3470 |
|
| 3471 |
--global-style |
| 3472 |
Only install direct dependencies in the top level \`node_modules\`, |
| 3473 |
|
| 3474 |
--strict-peer-deps |
| 3475 |
If set to \`true\`, and \`--legacy-peer-deps\` is not set, then _any_ |
| 3476 |
|
| 3477 |
--package-lock |
| 3478 |
If set to false, then ignore \`package-lock.json\` files when installing. |
| 3479 |
|
| 3480 |
--omit |
| 3481 |
Dependency types to omit from the installation tree on disk. |
| 3482 |
|
| 3483 |
--include |
| 3484 |
Option that allows for defining which types of dependencies to install. |
| 3485 |
|
| 3486 |
--ignore-scripts |
| 3487 |
If true, npm does not run scripts specified in package.json files. |
| 3488 |
|
| 3489 |
--allow-directory |
| 3490 |
Limits the ability for npm to install dependencies from directories. |
| 3491 |
|
| 3492 |
--allow-file |
| 3493 |
Limits the ability for npm to install dependencies from tarball files. |
| 3494 |
|
| 3495 |
--allow-git |
| 3496 |
Limits the ability for npm to fetch dependencies from git references. |
| 3497 |
|
| 3498 |
--allow-remote |
| 3499 |
Limits the ability for npm to fetch dependencies from urls. |
| 3500 |
|
| 3501 |
--audit |
| 3502 |
When "true" submit audit reports alongside the current npm command to the |
| 3503 |
|
| 3504 |
--bin-links |
| 3505 |
Tells npm to create symlinks (or \`.cmd\` shims on Windows) for package |
| 3506 |
|
| 3507 |
--fund |
| 3508 |
When "true" displays the message at the end of each \`npm install\` |
| 3509 |
|
| 3510 |
--dry-run |
| 3511 |
Indicates that you don't want npm to make any changes and that it should |
| 3512 |
|
| 3513 |
-w|--workspace |
| 3514 |
Enable running a command in the context of the configured workspaces of the |
| 3515 |
|
| 3516 |
--workspaces |
| 3517 |
Set to true to run the command in the context of **all** configured |
| 3518 |
|
| 3519 |
--include-workspace-root |
| 3520 |
Include the workspace root when workspaces are enabled for a command. |
| 3521 |
|
| 3522 |
--install-links |
| 3523 |
When set file: protocol dependencies will be packed and installed as |
| 3524 |
|
| 3525 |
|
| 3526 |
alias: ddp |
| 3527 |
|
| 3528 |
Run "npm help dedupe" for more info |
| 3529 |
|
| 3530 |
\`\`\`bash |
| 3531 |
npm dedupe |
| 3532 |
|
| 3533 |
alias: ddp |
| 3534 |
\`\`\` |
| 3535 |
|
| 3536 |
#### \`install-strategy\` |
| 3537 |
#### \`legacy-bundling\` |
| 3538 |
#### \`global-style\` |
| 3539 |
#### \`strict-peer-deps\` |
| 3540 |
#### \`package-lock\` |
| 3541 |
#### \`omit\` |
| 3542 |
#### \`include\` |
| 3543 |
#### \`ignore-scripts\` |
| 3544 |
#### \`allow-directory\` |
| 3545 |
#### \`allow-file\` |
| 3546 |
#### \`allow-git\` |
| 3547 |
#### \`allow-remote\` |
| 3548 |
#### \`audit\` |
| 3549 |
#### \`bin-links\` |
| 3550 |
#### \`fund\` |
| 3551 |
#### \`dry-run\` |
| 3552 |
#### \`workspace\` |
| 3553 |
#### \`workspaces\` |
| 3554 |
#### \`include-workspace-root\` |
| 3555 |
#### \`install-links\` |
| 3556 |
` |
| 3557 |
|
| 3558 |
exports[`test/lib/docs.js TAP usage deny-scripts > must match snapshot 1`] = ` |
| 3559 |
Deny install scripts for specific dependencies |
| 3560 |
|
| 3561 |
Usage: |
| 3562 |
npm deny-scripts <pkg> [<pkg> ...] |
| 3563 |
npm deny-scripts --all |
| 3564 |
|
| 3565 |
Options: |
| 3566 |
[-a|--all] [--allow-scripts-pending] [--no-allow-scripts-pin] [--json] |
| 3567 |
|
| 3568 |
-a|--all |
| 3569 |
When running \`npm outdated\` and \`npm ls\`, setting \`--all\` will show |
| 3570 |
|
| 3571 |
--allow-scripts-pending |
| 3572 |
List packages with install scripts that are not yet covered by the |
| 3573 |
|
| 3574 |
--allow-scripts-pin |
| 3575 |
Write pinned (\`pkg@version\`) entries when approving install scripts. |
| 3576 |
|
| 3577 |
--json |
| 3578 |
Whether or not to output JSON data, rather than the normal output. |
| 3579 |
|
| 3580 |
|
| 3581 |
Run "npm help deny-scripts" for more info |
| 3582 |
|
| 3583 |
\`\`\`bash |
| 3584 |
npm deny-scripts <pkg> [<pkg> ...] |
| 3585 |
npm deny-scripts --all |
| 3586 |
\`\`\` |
| 3587 |
|
| 3588 |
Note: This command is unaware of workspaces. |
| 3589 |
|
| 3590 |
#### \`all\` |
| 3591 |
#### \`allow-scripts-pending\` |
| 3592 |
#### \`allow-scripts-pin\` |
| 3593 |
#### \`json\` |
| 3594 |
` |
| 3595 |
|
| 3596 |
exports[`test/lib/docs.js TAP usage deprecate > must match snapshot 1`] = ` |
| 3597 |
Deprecate a version of a package |
| 3598 |
|
| 3599 |
Usage: |
| 3600 |
npm deprecate <package-spec> <message> |
| 3601 |
|
| 3602 |
Options: |
| 3603 |
[--registry <registry>] [--otp <otp>] [--dry-run] |
| 3604 |
|
| 3605 |
--registry |
| 3606 |
The base URL of the npm registry. |
| 3607 |
|
| 3608 |
--otp |
| 3609 |
This is a one-time password from a two-factor authenticator. It's needed |
| 3610 |
|
| 3611 |
--dry-run |
| 3612 |
Indicates that you don't want npm to make any changes and that it should |
| 3613 |
|
| 3614 |
|
| 3615 |
Run "npm help deprecate" for more info |
| 3616 |
|
| 3617 |
\`\`\`bash |
| 3618 |
npm deprecate <package-spec> <message> |
| 3619 |
\`\`\` |
| 3620 |
|
| 3621 |
Note: This command is unaware of workspaces. |
| 3622 |
|
| 3623 |
#### \`registry\` |
| 3624 |
#### \`otp\` |
| 3625 |
#### \`dry-run\` |
| 3626 |
` |
| 3627 |
|
| 3628 |
exports[`test/lib/docs.js TAP usage diff > must match snapshot 1`] = ` |
| 3629 |
The registry diff command |
| 3630 |
|
| 3631 |
Usage: |
| 3632 |
npm diff [...<paths>] |
| 3633 |
|
| 3634 |
Options: |
| 3635 |
[--diff <package-spec> [--diff <package-spec> ...]] [--diff-name-only] |
| 3636 |
[--diff-unified <number>] [--diff-ignore-all-space] [--diff-no-prefix] |
| 3637 |
[--diff-src-prefix <path>] [--diff-dst-prefix <path>] [--diff-text] [-g|--global] |
| 3638 |
[--tag <tag>] |
| 3639 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 3640 |
[--workspaces] [--include-workspace-root] |
| 3641 |
|
| 3642 |
--diff |
| 3643 |
Define arguments to compare in \`npm diff\`. |
| 3644 |
|
| 3645 |
--diff-name-only |
| 3646 |
Prints only filenames when using \`npm diff\`. |
| 3647 |
|
| 3648 |
--diff-unified |
| 3649 |
The number of lines of context to print in \`npm diff\`. |
| 3650 |
|
| 3651 |
--diff-ignore-all-space |
| 3652 |
Ignore whitespace when comparing lines in \`npm diff\`. |
| 3653 |
|
| 3654 |
--diff-no-prefix |
| 3655 |
Do not show any source or destination prefix in \`npm diff\` output. |
| 3656 |
|
| 3657 |
--diff-src-prefix |
| 3658 |
Source prefix to be used in \`npm diff\` output. |
| 3659 |
|
| 3660 |
--diff-dst-prefix |
| 3661 |
Destination prefix to be used in \`npm diff\` output. |
| 3662 |
|
| 3663 |
--diff-text |
| 3664 |
Treat all files as text in \`npm diff\`. |
| 3665 |
|
| 3666 |
-g|--global |
| 3667 |
Operates in "global" mode, so that packages are installed into the |
| 3668 |
|
| 3669 |
--tag |
| 3670 |
If you ask npm to install a package and don't tell it a specific version, |
| 3671 |
|
| 3672 |
-w|--workspace |
| 3673 |
Enable running a command in the context of the configured workspaces of the |
| 3674 |
|
| 3675 |
--workspaces |
| 3676 |
Set to true to run the command in the context of **all** configured |
| 3677 |
|
| 3678 |
--include-workspace-root |
| 3679 |
Include the workspace root when workspaces are enabled for a command. |
| 3680 |
|
| 3681 |
|
| 3682 |
Run "npm help diff" for more info |
| 3683 |
|
| 3684 |
\`\`\`bash |
| 3685 |
npm diff [...<paths>] |
| 3686 |
\`\`\` |
| 3687 |
|
| 3688 |
#### \`diff\` |
| 3689 |
#### \`diff-name-only\` |
| 3690 |
#### \`diff-unified\` |
| 3691 |
#### \`diff-ignore-all-space\` |
| 3692 |
#### \`diff-no-prefix\` |
| 3693 |
#### \`diff-src-prefix\` |
| 3694 |
#### \`diff-dst-prefix\` |
| 3695 |
#### \`diff-text\` |
| 3696 |
#### \`global\` |
| 3697 |
#### \`tag\` |
| 3698 |
#### \`workspace\` |
| 3699 |
#### \`workspaces\` |
| 3700 |
#### \`include-workspace-root\` |
| 3701 |
` |
| 3702 |
|
| 3703 |
exports[`test/lib/docs.js TAP usage dist-tag > must match snapshot 1`] = ` |
| 3704 |
Modify package distribution tags |
| 3705 |
|
| 3706 |
Usage: |
| 3707 |
npm dist-tag add <package-spec (with version)> [<tag>] |
| 3708 |
npm dist-tag rm <package-spec> <tag> |
| 3709 |
npm dist-tag ls [<package-spec>] |
| 3710 |
|
| 3711 |
Options: |
| 3712 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 3713 |
[--workspaces] [--include-workspace-root] |
| 3714 |
|
| 3715 |
-w|--workspace |
| 3716 |
Enable running a command in the context of the configured workspaces of the |
| 3717 |
|
| 3718 |
--workspaces |
| 3719 |
Set to true to run the command in the context of **all** configured |
| 3720 |
|
| 3721 |
--include-workspace-root |
| 3722 |
Include the workspace root when workspaces are enabled for a command. |
| 3723 |
|
| 3724 |
|
| 3725 |
alias: dist-tags |
| 3726 |
|
| 3727 |
Run "npm help dist-tag" for more info |
| 3728 |
|
| 3729 |
\`\`\`bash |
| 3730 |
npm dist-tag add <package-spec (with version)> [<tag>] |
| 3731 |
npm dist-tag rm <package-spec> <tag> |
| 3732 |
npm dist-tag ls [<package-spec>] |
| 3733 |
|
| 3734 |
alias: dist-tags |
| 3735 |
\`\`\` |
| 3736 |
|
| 3737 |
#### \`workspace\` |
| 3738 |
#### \`workspaces\` |
| 3739 |
#### \`include-workspace-root\` |
| 3740 |
` |
| 3741 |
|
| 3742 |
exports[`test/lib/docs.js TAP usage docs > must match snapshot 1`] = ` |
| 3743 |
Open documentation for a package in a web browser |
| 3744 |
|
| 3745 |
Usage: |
| 3746 |
npm docs [<pkgname> [<pkgname> ...]] |
| 3747 |
|
| 3748 |
Options: |
| 3749 |
[--no-browser|--browser <browser>] [--registry <registry>] |
| 3750 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 3751 |
[--workspaces] [--include-workspace-root] |
| 3752 |
|
| 3753 |
--browser |
| 3754 |
The browser that is called by npm commands to open websites. |
| 3755 |
|
| 3756 |
--registry |
| 3757 |
The base URL of the npm registry. |
| 3758 |
|
| 3759 |
-w|--workspace |
| 3760 |
Enable running a command in the context of the configured workspaces of the |
| 3761 |
|
| 3762 |
--workspaces |
| 3763 |
Set to true to run the command in the context of **all** configured |
| 3764 |
|
| 3765 |
--include-workspace-root |
| 3766 |
Include the workspace root when workspaces are enabled for a command. |
| 3767 |
|
| 3768 |
|
| 3769 |
alias: home |
| 3770 |
|
| 3771 |
Run "npm help docs" for more info |
| 3772 |
|
| 3773 |
\`\`\`bash |
| 3774 |
npm docs [<pkgname> [<pkgname> ...]] |
| 3775 |
|
| 3776 |
alias: home |
| 3777 |
\`\`\` |
| 3778 |
|
| 3779 |
#### \`browser\` |
| 3780 |
#### \`registry\` |
| 3781 |
#### \`workspace\` |
| 3782 |
#### \`workspaces\` |
| 3783 |
#### \`include-workspace-root\` |
| 3784 |
` |
| 3785 |
|
| 3786 |
exports[`test/lib/docs.js TAP usage doctor > must match snapshot 1`] = ` |
| 3787 |
Check the health of your npm environment |
| 3788 |
|
| 3789 |
Usage: |
| 3790 |
npm doctor [connection] [registry] [versions] [environment] [permissions] [cache] |
| 3791 |
|
| 3792 |
Options: |
| 3793 |
[--registry <registry>] |
| 3794 |
|
| 3795 |
--registry |
| 3796 |
The base URL of the npm registry. |
| 3797 |
|
| 3798 |
|
| 3799 |
Run "npm help doctor" for more info |
| 3800 |
|
| 3801 |
\`\`\`bash |
| 3802 |
npm doctor [connection] [registry] [versions] [environment] [permissions] [cache] |
| 3803 |
\`\`\` |
| 3804 |
|
| 3805 |
Note: This command is unaware of workspaces. |
| 3806 |
|
| 3807 |
#### \`registry\` |
| 3808 |
` |
| 3809 |
|
| 3810 |
exports[`test/lib/docs.js TAP usage edit > must match snapshot 1`] = ` |
| 3811 |
Edit an installed package |
| 3812 |
|
| 3813 |
Usage: |
| 3814 |
npm edit <pkg>[/<subpkg>...] |
| 3815 |
|
| 3816 |
Options: |
| 3817 |
[--editor <editor>] |
| 3818 |
|
| 3819 |
--editor |
| 3820 |
The command to run for \`npm edit\` and \`npm config edit\`. |
| 3821 |
|
| 3822 |
|
| 3823 |
Run "npm help edit" for more info |
| 3824 |
|
| 3825 |
\`\`\`bash |
| 3826 |
npm edit <pkg>[/<subpkg>...] |
| 3827 |
\`\`\` |
| 3828 |
|
| 3829 |
Note: This command is unaware of workspaces. |
| 3830 |
|
| 3831 |
#### \`editor\` |
| 3832 |
` |
| 3833 |
|
| 3834 |
exports[`test/lib/docs.js TAP usage exec > must match snapshot 1`] = ` |
| 3835 |
Run a command from a local or remote npm package |
| 3836 |
|
| 3837 |
Usage: |
| 3838 |
npm exec -- <pkg>[@<version>] [args...] |
| 3839 |
npm exec --package=<pkg>[@<version>] -- <cmd> [args...] |
| 3840 |
npm exec -c '<cmd> [args...]' |
| 3841 |
npm exec --package=foo -c '<cmd> [args...]' |
| 3842 |
|
| 3843 |
Options: |
| 3844 |
[--package <package-spec> [--package <package-spec> ...]] [-c|--call <call>] |
| 3845 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 3846 |
[--workspaces] [--include-workspace-root] |
| 3847 |
[--allow-scripts <package-list> [--allow-scripts <package-list> ...]] |
| 3848 |
[--strict-allow-scripts] [--dangerously-allow-all-scripts] |
| 3849 |
|
| 3850 |
--package |
| 3851 |
The package or packages to install for [\`npm exec\`](/commands/npm-exec) |
| 3852 |
|
| 3853 |
-c|--call |
| 3854 |
Optional companion option for \`npm exec\`, \`npx\` that allows for |
| 3855 |
|
| 3856 |
-w|--workspace |
| 3857 |
Enable running a command in the context of the configured workspaces of the |
| 3858 |
|
| 3859 |
--workspaces |
| 3860 |
Set to true to run the command in the context of **all** configured |
| 3861 |
|
| 3862 |
--include-workspace-root |
| 3863 |
Include the workspace root when workspaces are enabled for a command. |
| 3864 |
|
| 3865 |
--allow-scripts |
| 3866 |
Comma-separated list of packages whose install-time lifecycle scripts |
| 3867 |
|
| 3868 |
--strict-allow-scripts |
| 3869 |
If \`true\`, turn the install-script policy from a warning into a hard |
| 3870 |
|
| 3871 |
--dangerously-allow-all-scripts |
| 3872 |
If \`true\`, bypass the \`allowScripts\` policy entirely and run every |
| 3873 |
|
| 3874 |
|
| 3875 |
alias: x |
| 3876 |
|
| 3877 |
Run "npm help exec" for more info |
| 3878 |
|
| 3879 |
\`\`\`bash |
| 3880 |
npm exec -- <pkg>[@<version>] [args...] |
| 3881 |
npm exec --package=<pkg>[@<version>] -- <cmd> [args...] |
| 3882 |
npm exec -c '<cmd> [args...]' |
| 3883 |
npm exec --package=foo -c '<cmd> [args...]' |
| 3884 |
|
| 3885 |
alias: x |
| 3886 |
\`\`\` |
| 3887 |
|
| 3888 |
#### \`package\` |
| 3889 |
#### \`call\` |
| 3890 |
#### \`workspace\` |
| 3891 |
#### \`workspaces\` |
| 3892 |
#### \`include-workspace-root\` |
| 3893 |
#### \`allow-scripts\` |
| 3894 |
#### \`strict-allow-scripts\` |
| 3895 |
#### \`dangerously-allow-all-scripts\` |
| 3896 |
` |
| 3897 |
|
| 3898 |
exports[`test/lib/docs.js TAP usage explain > must match snapshot 1`] = ` |
| 3899 |
Explain installed packages |
| 3900 |
|
| 3901 |
Usage: |
| 3902 |
npm explain <package-spec> |
| 3903 |
|
| 3904 |
Options: |
| 3905 |
[--json] [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 3906 |
|
| 3907 |
--json |
| 3908 |
Whether or not to output JSON data, rather than the normal output. |
| 3909 |
|
| 3910 |
-w|--workspace |
| 3911 |
Enable running a command in the context of the configured workspaces of the |
| 3912 |
|
| 3913 |
|
| 3914 |
alias: why |
| 3915 |
|
| 3916 |
Run "npm help explain" for more info |
| 3917 |
|
| 3918 |
\`\`\`bash |
| 3919 |
npm explain <package-spec> |
| 3920 |
|
| 3921 |
alias: why |
| 3922 |
\`\`\` |
| 3923 |
|
| 3924 |
#### \`json\` |
| 3925 |
#### \`workspace\` |
| 3926 |
` |
| 3927 |
|
| 3928 |
exports[`test/lib/docs.js TAP usage explore > must match snapshot 1`] = ` |
| 3929 |
Browse an installed package |
| 3930 |
|
| 3931 |
Usage: |
| 3932 |
npm explore <pkg> [ -- <command>] |
| 3933 |
|
| 3934 |
Options: |
| 3935 |
[--shell <shell>] |
| 3936 |
|
| 3937 |
--shell |
| 3938 |
The shell to run for the \`npm explore\` command. |
| 3939 |
|
| 3940 |
|
| 3941 |
Run "npm help explore" for more info |
| 3942 |
|
| 3943 |
\`\`\`bash |
| 3944 |
npm explore <pkg> [ -- <command>] |
| 3945 |
\`\`\` |
| 3946 |
|
| 3947 |
Note: This command is unaware of workspaces. |
| 3948 |
|
| 3949 |
#### \`shell\` |
| 3950 |
` |
| 3951 |
|
| 3952 |
exports[`test/lib/docs.js TAP usage find-dupes > must match snapshot 1`] = ` |
| 3953 |
Find duplication in the package tree |
| 3954 |
|
| 3955 |
Usage: |
| 3956 |
npm find-dupes |
| 3957 |
|
| 3958 |
Options: |
| 3959 |
[--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling] |
| 3960 |
[--global-style] [--strict-peer-deps] [--no-package-lock] |
| 3961 |
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] |
| 3962 |
[--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]] |
| 3963 |
[--ignore-scripts] [--no-audit] [--no-bin-links] [--no-fund] |
| 3964 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 3965 |
[--workspaces] [--include-workspace-root] [--install-links] |
| 3966 |
|
| 3967 |
--install-strategy |
| 3968 |
Sets the strategy for installing packages in node_modules. |
| 3969 |
|
| 3970 |
--legacy-bundling |
| 3971 |
Instead of hoisting package installs in \`node_modules\`, install packages |
| 3972 |
|
| 3973 |
--global-style |
| 3974 |
Only install direct dependencies in the top level \`node_modules\`, |
| 3975 |
|
| 3976 |
--strict-peer-deps |
| 3977 |
If set to \`true\`, and \`--legacy-peer-deps\` is not set, then _any_ |
| 3978 |
|
| 3979 |
--package-lock |
| 3980 |
If set to false, then ignore \`package-lock.json\` files when installing. |
| 3981 |
|
| 3982 |
--omit |
| 3983 |
Dependency types to omit from the installation tree on disk. |
| 3984 |
|
| 3985 |
--include |
| 3986 |
Option that allows for defining which types of dependencies to install. |
| 3987 |
|
| 3988 |
--ignore-scripts |
| 3989 |
If true, npm does not run scripts specified in package.json files. |
| 3990 |
|
| 3991 |
--audit |
| 3992 |
When "true" submit audit reports alongside the current npm command to the |
| 3993 |
|
| 3994 |
--bin-links |
| 3995 |
Tells npm to create symlinks (or \`.cmd\` shims on Windows) for package |
| 3996 |
|
| 3997 |
--fund |
| 3998 |
When "true" displays the message at the end of each \`npm install\` |
| 3999 |
|
| 4000 |
-w|--workspace |
| 4001 |
Enable running a command in the context of the configured workspaces of the |
| 4002 |
|
| 4003 |
--workspaces |
| 4004 |
Set to true to run the command in the context of **all** configured |
| 4005 |
|
| 4006 |
--include-workspace-root |
| 4007 |
Include the workspace root when workspaces are enabled for a command. |
| 4008 |
|
| 4009 |
--install-links |
| 4010 |
When set file: protocol dependencies will be packed and installed as |
| 4011 |
|
| 4012 |
|
| 4013 |
Run "npm help find-dupes" for more info |
| 4014 |
|
| 4015 |
\`\`\`bash |
| 4016 |
npm find-dupes |
| 4017 |
\`\`\` |
| 4018 |
|
| 4019 |
#### \`install-strategy\` |
| 4020 |
#### \`legacy-bundling\` |
| 4021 |
#### \`global-style\` |
| 4022 |
#### \`strict-peer-deps\` |
| 4023 |
#### \`package-lock\` |
| 4024 |
#### \`omit\` |
| 4025 |
#### \`include\` |
| 4026 |
#### \`ignore-scripts\` |
| 4027 |
#### \`audit\` |
| 4028 |
#### \`bin-links\` |
| 4029 |
#### \`fund\` |
| 4030 |
#### \`workspace\` |
| 4031 |
#### \`workspaces\` |
| 4032 |
#### \`include-workspace-root\` |
| 4033 |
#### \`install-links\` |
| 4034 |
` |
| 4035 |
|
| 4036 |
exports[`test/lib/docs.js TAP usage fund > must match snapshot 1`] = ` |
| 4037 |
Retrieve funding information |
| 4038 |
|
| 4039 |
Usage: |
| 4040 |
npm fund [<package-spec>] |
| 4041 |
|
| 4042 |
Options: |
| 4043 |
[--json] [--no-browser|--browser <browser>] [--unicode] |
| 4044 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 4045 |
[--which <fundingSourceNumber>] |
| 4046 |
|
| 4047 |
--json |
| 4048 |
Whether or not to output JSON data, rather than the normal output. |
| 4049 |
|
| 4050 |
--browser |
| 4051 |
The browser that is called by npm commands to open websites. |
| 4052 |
|
| 4053 |
--unicode |
| 4054 |
When set to true, npm uses unicode characters in the tree output. When |
| 4055 |
|
| 4056 |
-w|--workspace |
| 4057 |
Enable running a command in the context of the configured workspaces of the |
| 4058 |
|
| 4059 |
--which |
| 4060 |
If there are multiple funding sources, which 1-indexed source URL to open. |
| 4061 |
|
| 4062 |
|
| 4063 |
Run "npm help fund" for more info |
| 4064 |
|
| 4065 |
\`\`\`bash |
| 4066 |
npm fund [<package-spec>] |
| 4067 |
\`\`\` |
| 4068 |
|
| 4069 |
#### \`json\` |
| 4070 |
#### \`browser\` |
| 4071 |
#### \`unicode\` |
| 4072 |
#### \`workspace\` |
| 4073 |
#### \`which\` |
| 4074 |
` |
| 4075 |
|
| 4076 |
exports[`test/lib/docs.js TAP usage get > must match snapshot 1`] = ` |
| 4077 |
Get a value from the npm configuration |
| 4078 |
|
| 4079 |
Usage: |
| 4080 |
npm get [<key> ...] (See \`npm config\`) |
| 4081 |
|
| 4082 |
Options: |
| 4083 |
[-l|--long] |
| 4084 |
|
| 4085 |
-l|--long |
| 4086 |
Show extended information in \`ls\`, \`search\`, and \`help-search\`. |
| 4087 |
|
| 4088 |
|
| 4089 |
Run "npm help get" for more info |
| 4090 |
|
| 4091 |
\`\`\`bash |
| 4092 |
npm get [<key> ...] (See \`npm config\`) |
| 4093 |
\`\`\` |
| 4094 |
|
| 4095 |
Note: This command is unaware of workspaces. |
| 4096 |
|
| 4097 |
#### \`long\` |
| 4098 |
` |
| 4099 |
|
| 4100 |
exports[`test/lib/docs.js TAP usage help > must match snapshot 1`] = ` |
| 4101 |
Get help on npm |
| 4102 |
|
| 4103 |
Usage: |
| 4104 |
npm help <term> [<terms..>] |
| 4105 |
|
| 4106 |
Options: |
| 4107 |
[--viewer <viewer>] |
| 4108 |
|
| 4109 |
--viewer |
| 4110 |
The program to use to view help content. |
| 4111 |
|
| 4112 |
|
| 4113 |
alias: hlep |
| 4114 |
|
| 4115 |
Run "npm help help" for more info |
| 4116 |
|
| 4117 |
\`\`\`bash |
| 4118 |
npm help <term> [<terms..>] |
| 4119 |
|
| 4120 |
alias: hlep |
| 4121 |
\`\`\` |
| 4122 |
|
| 4123 |
Note: This command is unaware of workspaces. |
| 4124 |
|
| 4125 |
#### \`viewer\` |
| 4126 |
` |
| 4127 |
|
| 4128 |
exports[`test/lib/docs.js TAP usage help-search > must match snapshot 1`] = ` |
| 4129 |
Search npm help documentation |
| 4130 |
|
| 4131 |
Usage: |
| 4132 |
npm help-search <text> |
| 4133 |
|
| 4134 |
Options: |
| 4135 |
[-l|--long] |
| 4136 |
|
| 4137 |
-l|--long |
| 4138 |
Show extended information in \`ls\`, \`search\`, and \`help-search\`. |
| 4139 |
|
| 4140 |
|
| 4141 |
Run "npm help help-search" for more info |
| 4142 |
|
| 4143 |
\`\`\`bash |
| 4144 |
npm help-search <text> |
| 4145 |
\`\`\` |
| 4146 |
|
| 4147 |
Note: This command is unaware of workspaces. |
| 4148 |
|
| 4149 |
#### \`long\` |
| 4150 |
` |
| 4151 |
|
| 4152 |
exports[`test/lib/docs.js TAP usage init > must match snapshot 1`] = ` |
| 4153 |
Create a package.json file |
| 4154 |
|
| 4155 |
Usage: |
| 4156 |
npm init <package-spec> (same as \`npx create-<package-spec>\`) |
| 4157 |
npm init <@scope> (same as \`npx <@scope>/create\`) |
| 4158 |
|
| 4159 |
Options: |
| 4160 |
[--init-author-name <name>] [--init-author-url <url>] [--init-license <license>] |
| 4161 |
[--init-module <module>] [--init-type <type>] [--init-version <version>] |
| 4162 |
[--init-private] [-y|--yes] [-f|--force] [--scope <@scope>] |
| 4163 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 4164 |
[--workspaces] [--no-workspaces-update] [--include-workspace-root] |
| 4165 |
|
| 4166 |
--init-author-name |
| 4167 |
The value \`npm init\` should use by default for the package author's name. |
| 4168 |
|
| 4169 |
--init-author-url |
| 4170 |
The value \`npm init\` should use by default for the package author's homepage. |
| 4171 |
|
| 4172 |
--init-license |
| 4173 |
The value \`npm init\` should use by default for the package license. |
| 4174 |
|
| 4175 |
--init-module |
| 4176 |
A module that will be loaded by the \`npm init\` command. See the |
| 4177 |
|
| 4178 |
--init-type |
| 4179 |
The value that \`npm init\` should use by default for the package.json type field. |
| 4180 |
|
| 4181 |
--init-version |
| 4182 |
The value that \`npm init\` should use by default for the package |
| 4183 |
|
| 4184 |
--init-private |
| 4185 |
The value \`npm init\` should use by default for the package's private flag. |
| 4186 |
|
| 4187 |
-y|--yes |
| 4188 |
Automatically answer "yes" to any prompts that npm might print on |
| 4189 |
|
| 4190 |
-f|--force |
| 4191 |
Removes various protections against unfortunate side effects, common |
| 4192 |
|
| 4193 |
--scope |
| 4194 |
Associate an operation with a scope for a scoped registry. |
| 4195 |
|
| 4196 |
-w|--workspace |
| 4197 |
Enable running a command in the context of the configured workspaces of the |
| 4198 |
|
| 4199 |
--workspaces |
| 4200 |
Set to true to run the command in the context of **all** configured |
| 4201 |
|
| 4202 |
--workspaces-update |
| 4203 |
If set to true, the npm cli will run an update after operations that may |
| 4204 |
|
| 4205 |
--include-workspace-root |
| 4206 |
Include the workspace root when workspaces are enabled for a command. |
| 4207 |
|
| 4208 |
|
| 4209 |
aliases: create, innit |
| 4210 |
|
| 4211 |
Run "npm help init" for more info |
| 4212 |
|
| 4213 |
\`\`\`bash |
| 4214 |
npm init <package-spec> (same as \`npx create-<package-spec>\`) |
| 4215 |
npm init <@scope> (same as \`npx <@scope>/create\`) |
| 4216 |
|
| 4217 |
aliases: create, innit |
| 4218 |
\`\`\` |
| 4219 |
|
| 4220 |
#### \`init-author-name\` |
| 4221 |
#### \`init-author-url\` |
| 4222 |
#### \`init-license\` |
| 4223 |
#### \`init-module\` |
| 4224 |
#### \`init-type\` |
| 4225 |
#### \`init-version\` |
| 4226 |
#### \`init-private\` |
| 4227 |
#### \`yes\` |
| 4228 |
#### \`force\` |
| 4229 |
#### \`scope\` |
| 4230 |
#### \`workspace\` |
| 4231 |
#### \`workspaces\` |
| 4232 |
#### \`workspaces-update\` |
| 4233 |
#### \`include-workspace-root\` |
| 4234 |
` |
| 4235 |
|
| 4236 |
exports[`test/lib/docs.js TAP usage install > must match snapshot 1`] = ` |
| 4237 |
Install a package |
| 4238 |
|
| 4239 |
Usage: |
| 4240 |
npm install [<package-spec> ...] |
| 4241 |
|
| 4242 |
Options: |
| 4243 |
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle] |
| 4244 |
[-E|--save-exact] [-g|--global] |
| 4245 |
[--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling] |
| 4246 |
[--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] |
| 4247 |
[--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]] |
| 4248 |
[--strict-peer-deps] [--prefer-dedupe] [--no-package-lock] [--package-lock-only] |
| 4249 |
[--foreground-scripts] [--ignore-scripts] [--allow-directory <all|none|root>] |
| 4250 |
[--allow-file <all|none|root>] [--allow-git <all|none|root>] |
| 4251 |
[--allow-remote <all|none|root>] |
| 4252 |
[--allow-scripts <package-list> [--allow-scripts <package-list> ...]] |
| 4253 |
[--strict-allow-scripts] [--dangerously-allow-all-scripts] [--no-audit] |
| 4254 |
[--before <date>] [--min-release-age <days>] [--no-bin-links] [--no-fund] |
| 4255 |
[--dry-run] [--cpu <cpu>] [--os <os>] [--libc <libc>] |
| 4256 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 4257 |
[--workspaces] [--include-workspace-root] [--install-links] |
| 4258 |
|
| 4259 |
-S|--save |
| 4260 |
Save installed packages to a \`package.json\` file as dependencies. |
| 4261 |
|
| 4262 |
-E|--save-exact |
| 4263 |
Dependencies saved to package.json will be configured with an exact |
| 4264 |
|
| 4265 |
-g|--global |
| 4266 |
Operates in "global" mode, so that packages are installed into the |
| 4267 |
|
| 4268 |
--install-strategy |
| 4269 |
Sets the strategy for installing packages in node_modules. |
| 4270 |
|
| 4271 |
--legacy-bundling |
| 4272 |
Instead of hoisting package installs in \`node_modules\`, install packages |
| 4273 |
|
| 4274 |
--global-style |
| 4275 |
Only install direct dependencies in the top level \`node_modules\`, |
| 4276 |
|
| 4277 |
--omit |
| 4278 |
Dependency types to omit from the installation tree on disk. |
| 4279 |
|
| 4280 |
--include |
| 4281 |
Option that allows for defining which types of dependencies to install. |
| 4282 |
|
| 4283 |
--strict-peer-deps |
| 4284 |
If set to \`true\`, and \`--legacy-peer-deps\` is not set, then _any_ |
| 4285 |
|
| 4286 |
--prefer-dedupe |
| 4287 |
Prefer to deduplicate packages if possible, rather than |
| 4288 |
|
| 4289 |
--package-lock |
| 4290 |
If set to false, then ignore \`package-lock.json\` files when installing. |
| 4291 |
|
| 4292 |
--package-lock-only |
| 4293 |
If set to true, the current operation will only use the \`package-lock.json\`, |
| 4294 |
|
| 4295 |
--foreground-scripts |
| 4296 |
Run all build scripts (ie, \`preinstall\`, \`install\`, and |
| 4297 |
|
| 4298 |
--ignore-scripts |
| 4299 |
If true, npm does not run scripts specified in package.json files. |
| 4300 |
|
| 4301 |
--allow-directory |
| 4302 |
Limits the ability for npm to install dependencies from directories. |
| 4303 |
|
| 4304 |
--allow-file |
| 4305 |
Limits the ability for npm to install dependencies from tarball files. |
| 4306 |
|
| 4307 |
--allow-git |
| 4308 |
Limits the ability for npm to fetch dependencies from git references. |
| 4309 |
|
| 4310 |
--allow-remote |
| 4311 |
Limits the ability for npm to fetch dependencies from urls. |
| 4312 |
|
| 4313 |
--allow-scripts |
| 4314 |
Comma-separated list of packages whose install-time lifecycle scripts |
| 4315 |
|
| 4316 |
--strict-allow-scripts |
| 4317 |
If \`true\`, turn the install-script policy from a warning into a hard |
| 4318 |
|
| 4319 |
--dangerously-allow-all-scripts |
| 4320 |
If \`true\`, bypass the \`allowScripts\` policy entirely and run every |
| 4321 |
|
| 4322 |
--audit |
| 4323 |
When "true" submit audit reports alongside the current npm command to the |
| 4324 |
|
| 4325 |
--before |
| 4326 |
If passed to \`npm install\`, will rebuild the npm tree such that only |
| 4327 |
|
| 4328 |
--min-release-age |
| 4329 |
If set, npm will build the npm tree such that only versions that were |
| 4330 |
|
| 4331 |
--bin-links |
| 4332 |
Tells npm to create symlinks (or \`.cmd\` shims on Windows) for package |
| 4333 |
|
| 4334 |
--fund |
| 4335 |
When "true" displays the message at the end of each \`npm install\` |
| 4336 |
|
| 4337 |
--dry-run |
| 4338 |
Indicates that you don't want npm to make any changes and that it should |
| 4339 |
|
| 4340 |
--cpu |
| 4341 |
Override CPU architecture of native modules to install. |
| 4342 |
|
| 4343 |
--os |
| 4344 |
Override OS of native modules to install. |
| 4345 |
|
| 4346 |
--libc |
| 4347 |
Override libc of native modules to install. |
| 4348 |
|
| 4349 |
-w|--workspace |
| 4350 |
Enable running a command in the context of the configured workspaces of the |
| 4351 |
|
| 4352 |
--workspaces |
| 4353 |
Set to true to run the command in the context of **all** configured |
| 4354 |
|
| 4355 |
--include-workspace-root |
| 4356 |
Include the workspace root when workspaces are enabled for a command. |
| 4357 |
|
| 4358 |
--install-links |
| 4359 |
When set file: protocol dependencies will be packed and installed as |
| 4360 |
|
| 4361 |
|
| 4362 |
aliases: add, i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall |
| 4363 |
|
| 4364 |
Run "npm help install" for more info |
| 4365 |
|
| 4366 |
\`\`\`bash |
| 4367 |
npm install [<package-spec> ...] |
| 4368 |
|
| 4369 |
aliases: add, i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall |
| 4370 |
\`\`\` |
| 4371 |
|
| 4372 |
#### \`save\` |
| 4373 |
#### \`save-exact\` |
| 4374 |
#### \`global\` |
| 4375 |
#### \`install-strategy\` |
| 4376 |
#### \`legacy-bundling\` |
| 4377 |
#### \`global-style\` |
| 4378 |
#### \`omit\` |
| 4379 |
#### \`include\` |
| 4380 |
#### \`strict-peer-deps\` |
| 4381 |
#### \`prefer-dedupe\` |
| 4382 |
#### \`package-lock\` |
| 4383 |
#### \`package-lock-only\` |
| 4384 |
#### \`foreground-scripts\` |
| 4385 |
#### \`ignore-scripts\` |
| 4386 |
#### \`allow-directory\` |
| 4387 |
#### \`allow-file\` |
| 4388 |
#### \`allow-git\` |
| 4389 |
#### \`allow-remote\` |
| 4390 |
#### \`allow-scripts\` |
| 4391 |
#### \`strict-allow-scripts\` |
| 4392 |
#### \`dangerously-allow-all-scripts\` |
| 4393 |
#### \`audit\` |
| 4394 |
#### \`before\` |
| 4395 |
#### \`min-release-age\` |
| 4396 |
#### \`bin-links\` |
| 4397 |
#### \`fund\` |
| 4398 |
#### \`dry-run\` |
| 4399 |
#### \`cpu\` |
| 4400 |
#### \`os\` |
| 4401 |
#### \`libc\` |
| 4402 |
#### \`workspace\` |
| 4403 |
#### \`workspaces\` |
| 4404 |
#### \`include-workspace-root\` |
| 4405 |
#### \`install-links\` |
| 4406 |
` |
| 4407 |
|
| 4408 |
exports[`test/lib/docs.js TAP usage install-ci-test > must match snapshot 1`] = ` |
| 4409 |
Install a project with a clean slate and run tests |
| 4410 |
|
| 4411 |
Usage: |
| 4412 |
npm install-ci-test |
| 4413 |
|
| 4414 |
Options: |
| 4415 |
[--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling] |
| 4416 |
[--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] |
| 4417 |
[--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]] |
| 4418 |
[--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] |
| 4419 |
[--allow-directory <all|none|root>] [--allow-file <all|none|root>] |
| 4420 |
[--allow-git <all|none|root>] [--allow-remote <all|none|root>] |
| 4421 |
[--allow-scripts <package-list> [--allow-scripts <package-list> ...]] |
| 4422 |
[--strict-allow-scripts] [--dangerously-allow-all-scripts] [--no-audit] |
| 4423 |
[--no-bin-links] [--no-fund] [--dry-run] |
| 4424 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 4425 |
[--workspaces] [--include-workspace-root] [--install-links] |
| 4426 |
|
| 4427 |
--install-strategy |
| 4428 |
Sets the strategy for installing packages in node_modules. |
| 4429 |
|
| 4430 |
--legacy-bundling |
| 4431 |
Instead of hoisting package installs in \`node_modules\`, install packages |
| 4432 |
|
| 4433 |
--global-style |
| 4434 |
Only install direct dependencies in the top level \`node_modules\`, |
| 4435 |
|
| 4436 |
--omit |
| 4437 |
Dependency types to omit from the installation tree on disk. |
| 4438 |
|
| 4439 |
--include |
| 4440 |
Option that allows for defining which types of dependencies to install. |
| 4441 |
|
| 4442 |
--strict-peer-deps |
| 4443 |
If set to \`true\`, and \`--legacy-peer-deps\` is not set, then _any_ |
| 4444 |
|
| 4445 |
--foreground-scripts |
| 4446 |
Run all build scripts (ie, \`preinstall\`, \`install\`, and |
| 4447 |
|
| 4448 |
--ignore-scripts |
| 4449 |
If true, npm does not run scripts specified in package.json files. |
| 4450 |
|
| 4451 |
--allow-directory |
| 4452 |
Limits the ability for npm to install dependencies from directories. |
| 4453 |
|
| 4454 |
--allow-file |
| 4455 |
Limits the ability for npm to install dependencies from tarball files. |
| 4456 |
|
| 4457 |
--allow-git |
| 4458 |
Limits the ability for npm to fetch dependencies from git references. |
| 4459 |
|
| 4460 |
--allow-remote |
| 4461 |
Limits the ability for npm to fetch dependencies from urls. |
| 4462 |
|
| 4463 |
--allow-scripts |
| 4464 |
Comma-separated list of packages whose install-time lifecycle scripts |
| 4465 |
|
| 4466 |
--strict-allow-scripts |
| 4467 |
If \`true\`, turn the install-script policy from a warning into a hard |
| 4468 |
|
| 4469 |
--dangerously-allow-all-scripts |
| 4470 |
If \`true\`, bypass the \`allowScripts\` policy entirely and run every |
| 4471 |
|
| 4472 |
--audit |
| 4473 |
When "true" submit audit reports alongside the current npm command to the |
| 4474 |
|
| 4475 |
--bin-links |
| 4476 |
Tells npm to create symlinks (or \`.cmd\` shims on Windows) for package |
| 4477 |
|
| 4478 |
--fund |
| 4479 |
When "true" displays the message at the end of each \`npm install\` |
| 4480 |
|
| 4481 |
--dry-run |
| 4482 |
Indicates that you don't want npm to make any changes and that it should |
| 4483 |
|
| 4484 |
-w|--workspace |
| 4485 |
Enable running a command in the context of the configured workspaces of the |
| 4486 |
|
| 4487 |
--workspaces |
| 4488 |
Set to true to run the command in the context of **all** configured |
| 4489 |
|
| 4490 |
--include-workspace-root |
| 4491 |
Include the workspace root when workspaces are enabled for a command. |
| 4492 |
|
| 4493 |
--install-links |
| 4494 |
When set file: protocol dependencies will be packed and installed as |
| 4495 |
|
| 4496 |
|
| 4497 |
aliases: cit, clean-install-test, sit |
| 4498 |
|
| 4499 |
Run "npm help install-ci-test" for more info |
| 4500 |
|
| 4501 |
\`\`\`bash |
| 4502 |
npm install-ci-test |
| 4503 |
|
| 4504 |
aliases: cit, clean-install-test, sit |
| 4505 |
\`\`\` |
| 4506 |
|
| 4507 |
#### \`install-strategy\` |
| 4508 |
#### \`legacy-bundling\` |
| 4509 |
#### \`global-style\` |
| 4510 |
#### \`omit\` |
| 4511 |
#### \`include\` |
| 4512 |
#### \`strict-peer-deps\` |
| 4513 |
#### \`foreground-scripts\` |
| 4514 |
#### \`ignore-scripts\` |
| 4515 |
#### \`allow-directory\` |
| 4516 |
#### \`allow-file\` |
| 4517 |
#### \`allow-git\` |
| 4518 |
#### \`allow-remote\` |
| 4519 |
#### \`allow-scripts\` |
| 4520 |
#### \`strict-allow-scripts\` |
| 4521 |
#### \`dangerously-allow-all-scripts\` |
| 4522 |
#### \`audit\` |
| 4523 |
#### \`bin-links\` |
| 4524 |
#### \`fund\` |
| 4525 |
#### \`dry-run\` |
| 4526 |
#### \`workspace\` |
| 4527 |
#### \`workspaces\` |
| 4528 |
#### \`include-workspace-root\` |
| 4529 |
#### \`install-links\` |
| 4530 |
` |
| 4531 |
|
| 4532 |
exports[`test/lib/docs.js TAP usage install-test > must match snapshot 1`] = ` |
| 4533 |
Install package(s) and run tests |
| 4534 |
|
| 4535 |
Usage: |
| 4536 |
npm install-test [<package-spec> ...] |
| 4537 |
|
| 4538 |
Options: |
| 4539 |
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle] |
| 4540 |
[-E|--save-exact] [-g|--global] |
| 4541 |
[--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling] |
| 4542 |
[--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] |
| 4543 |
[--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]] |
| 4544 |
[--strict-peer-deps] [--prefer-dedupe] [--no-package-lock] [--package-lock-only] |
| 4545 |
[--foreground-scripts] [--ignore-scripts] [--allow-directory <all|none|root>] |
| 4546 |
[--allow-file <all|none|root>] [--allow-git <all|none|root>] |
| 4547 |
[--allow-remote <all|none|root>] |
| 4548 |
[--allow-scripts <package-list> [--allow-scripts <package-list> ...]] |
| 4549 |
[--strict-allow-scripts] [--dangerously-allow-all-scripts] [--no-audit] |
| 4550 |
[--before <date>] [--min-release-age <days>] [--no-bin-links] [--no-fund] |
| 4551 |
[--dry-run] [--cpu <cpu>] [--os <os>] [--libc <libc>] |
| 4552 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 4553 |
[--workspaces] [--include-workspace-root] [--install-links] |
| 4554 |
|
| 4555 |
-S|--save |
| 4556 |
Save installed packages to a \`package.json\` file as dependencies. |
| 4557 |
|
| 4558 |
-E|--save-exact |
| 4559 |
Dependencies saved to package.json will be configured with an exact |
| 4560 |
|
| 4561 |
-g|--global |
| 4562 |
Operates in "global" mode, so that packages are installed into the |
| 4563 |
|
| 4564 |
--install-strategy |
| 4565 |
Sets the strategy for installing packages in node_modules. |
| 4566 |
|
| 4567 |
--legacy-bundling |
| 4568 |
Instead of hoisting package installs in \`node_modules\`, install packages |
| 4569 |
|
| 4570 |
--global-style |
| 4571 |
Only install direct dependencies in the top level \`node_modules\`, |
| 4572 |
|
| 4573 |
--omit |
| 4574 |
Dependency types to omit from the installation tree on disk. |
| 4575 |
|
| 4576 |
--include |
| 4577 |
Option that allows for defining which types of dependencies to install. |
| 4578 |
|
| 4579 |
--strict-peer-deps |
| 4580 |
If set to \`true\`, and \`--legacy-peer-deps\` is not set, then _any_ |
| 4581 |
|
| 4582 |
--prefer-dedupe |
| 4583 |
Prefer to deduplicate packages if possible, rather than |
| 4584 |
|
| 4585 |
--package-lock |
| 4586 |
If set to false, then ignore \`package-lock.json\` files when installing. |
| 4587 |
|
| 4588 |
--package-lock-only |
| 4589 |
If set to true, the current operation will only use the \`package-lock.json\`, |
| 4590 |
|
| 4591 |
--foreground-scripts |
| 4592 |
Run all build scripts (ie, \`preinstall\`, \`install\`, and |
| 4593 |
|
| 4594 |
--ignore-scripts |
| 4595 |
If true, npm does not run scripts specified in package.json files. |
| 4596 |
|
| 4597 |
--allow-directory |
| 4598 |
Limits the ability for npm to install dependencies from directories. |
| 4599 |
|
| 4600 |
--allow-file |
| 4601 |
Limits the ability for npm to install dependencies from tarball files. |
| 4602 |
|
| 4603 |
--allow-git |
| 4604 |
Limits the ability for npm to fetch dependencies from git references. |
| 4605 |
|
| 4606 |
--allow-remote |
| 4607 |
Limits the ability for npm to fetch dependencies from urls. |
| 4608 |
|
| 4609 |
--allow-scripts |
| 4610 |
Comma-separated list of packages whose install-time lifecycle scripts |
| 4611 |
|
| 4612 |
--strict-allow-scripts |
| 4613 |
If \`true\`, turn the install-script policy from a warning into a hard |
| 4614 |
|
| 4615 |
--dangerously-allow-all-scripts |
| 4616 |
If \`true\`, bypass the \`allowScripts\` policy entirely and run every |
| 4617 |
|
| 4618 |
--audit |
| 4619 |
When "true" submit audit reports alongside the current npm command to the |
| 4620 |
|
| 4621 |
--before |
| 4622 |
If passed to \`npm install\`, will rebuild the npm tree such that only |
| 4623 |
|
| 4624 |
--min-release-age |
| 4625 |
If set, npm will build the npm tree such that only versions that were |
| 4626 |
|
| 4627 |
--bin-links |
| 4628 |
Tells npm to create symlinks (or \`.cmd\` shims on Windows) for package |
| 4629 |
|
| 4630 |
--fund |
| 4631 |
When "true" displays the message at the end of each \`npm install\` |
| 4632 |
|
| 4633 |
--dry-run |
| 4634 |
Indicates that you don't want npm to make any changes and that it should |
| 4635 |
|
| 4636 |
--cpu |
| 4637 |
Override CPU architecture of native modules to install. |
| 4638 |
|
| 4639 |
--os |
| 4640 |
Override OS of native modules to install. |
| 4641 |
|
| 4642 |
--libc |
| 4643 |
Override libc of native modules to install. |
| 4644 |
|
| 4645 |
-w|--workspace |
| 4646 |
Enable running a command in the context of the configured workspaces of the |
| 4647 |
|
| 4648 |
--workspaces |
| 4649 |
Set to true to run the command in the context of **all** configured |
| 4650 |
|
| 4651 |
--include-workspace-root |
| 4652 |
Include the workspace root when workspaces are enabled for a command. |
| 4653 |
|
| 4654 |
--install-links |
| 4655 |
When set file: protocol dependencies will be packed and installed as |
| 4656 |
|
| 4657 |
|
| 4658 |
alias: it |
| 4659 |
|
| 4660 |
Run "npm help install-test" for more info |
| 4661 |
|
| 4662 |
\`\`\`bash |
| 4663 |
npm install-test [<package-spec> ...] |
| 4664 |
|
| 4665 |
alias: it |
| 4666 |
\`\`\` |
| 4667 |
|
| 4668 |
#### \`save\` |
| 4669 |
#### \`save-exact\` |
| 4670 |
#### \`global\` |
| 4671 |
#### \`install-strategy\` |
| 4672 |
#### \`legacy-bundling\` |
| 4673 |
#### \`global-style\` |
| 4674 |
#### \`omit\` |
| 4675 |
#### \`include\` |
| 4676 |
#### \`strict-peer-deps\` |
| 4677 |
#### \`prefer-dedupe\` |
| 4678 |
#### \`package-lock\` |
| 4679 |
#### \`package-lock-only\` |
| 4680 |
#### \`foreground-scripts\` |
| 4681 |
#### \`ignore-scripts\` |
| 4682 |
#### \`allow-directory\` |
| 4683 |
#### \`allow-file\` |
| 4684 |
#### \`allow-git\` |
| 4685 |
#### \`allow-remote\` |
| 4686 |
#### \`allow-scripts\` |
| 4687 |
#### \`strict-allow-scripts\` |
| 4688 |
#### \`dangerously-allow-all-scripts\` |
| 4689 |
#### \`audit\` |
| 4690 |
#### \`before\` |
| 4691 |
#### \`min-release-age\` |
| 4692 |
#### \`bin-links\` |
| 4693 |
#### \`fund\` |
| 4694 |
#### \`dry-run\` |
| 4695 |
#### \`cpu\` |
| 4696 |
#### \`os\` |
| 4697 |
#### \`libc\` |
| 4698 |
#### \`workspace\` |
| 4699 |
#### \`workspaces\` |
| 4700 |
#### \`include-workspace-root\` |
| 4701 |
#### \`install-links\` |
| 4702 |
` |
| 4703 |
|
| 4704 |
exports[`test/lib/docs.js TAP usage link > must match snapshot 1`] = ` |
| 4705 |
Symlink a package folder |
| 4706 |
|
| 4707 |
Usage: |
| 4708 |
npm link [<package-spec>] |
| 4709 |
|
| 4710 |
Options: |
| 4711 |
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle] |
| 4712 |
[-E|--save-exact] [-g|--global] |
| 4713 |
[--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling] |
| 4714 |
[--global-style] [--strict-peer-deps] [--no-package-lock] |
| 4715 |
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] |
| 4716 |
[--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]] |
| 4717 |
[--ignore-scripts] [--allow-directory <all|none|root>] |
| 4718 |
[--allow-file <all|none|root>] [--allow-git <all|none|root>] |
| 4719 |
[--allow-remote <all|none|root>] [--no-audit] [--no-bin-links] [--no-fund] |
| 4720 |
[--dry-run] |
| 4721 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 4722 |
[--workspaces] [--include-workspace-root] [--install-links] |
| 4723 |
|
| 4724 |
-S|--save |
| 4725 |
Save installed packages to a \`package.json\` file as dependencies. |
| 4726 |
|
| 4727 |
-E|--save-exact |
| 4728 |
Dependencies saved to package.json will be configured with an exact |
| 4729 |
|
| 4730 |
-g|--global |
| 4731 |
Operates in "global" mode, so that packages are installed into the |
| 4732 |
|
| 4733 |
--install-strategy |
| 4734 |
Sets the strategy for installing packages in node_modules. |
| 4735 |
|
| 4736 |
--legacy-bundling |
| 4737 |
Instead of hoisting package installs in \`node_modules\`, install packages |
| 4738 |
|
| 4739 |
--global-style |
| 4740 |
Only install direct dependencies in the top level \`node_modules\`, |
| 4741 |
|
| 4742 |
--strict-peer-deps |
| 4743 |
If set to \`true\`, and \`--legacy-peer-deps\` is not set, then _any_ |
| 4744 |
|
| 4745 |
--package-lock |
| 4746 |
If set to false, then ignore \`package-lock.json\` files when installing. |
| 4747 |
|
| 4748 |
--omit |
| 4749 |
Dependency types to omit from the installation tree on disk. |
| 4750 |
|
| 4751 |
--include |
| 4752 |
Option that allows for defining which types of dependencies to install. |
| 4753 |
|
| 4754 |
--ignore-scripts |
| 4755 |
If true, npm does not run scripts specified in package.json files. |
| 4756 |
|
| 4757 |
--allow-directory |
| 4758 |
Limits the ability for npm to install dependencies from directories. |
| 4759 |
|
| 4760 |
--allow-file |
| 4761 |
Limits the ability for npm to install dependencies from tarball files. |
| 4762 |
|
| 4763 |
--allow-git |
| 4764 |
Limits the ability for npm to fetch dependencies from git references. |
| 4765 |
|
| 4766 |
--allow-remote |
| 4767 |
Limits the ability for npm to fetch dependencies from urls. |
| 4768 |
|
| 4769 |
--audit |
| 4770 |
When "true" submit audit reports alongside the current npm command to the |
| 4771 |
|
| 4772 |
--bin-links |
| 4773 |
Tells npm to create symlinks (or \`.cmd\` shims on Windows) for package |
| 4774 |
|
| 4775 |
--fund |
| 4776 |
When "true" displays the message at the end of each \`npm install\` |
| 4777 |
|
| 4778 |
--dry-run |
| 4779 |
Indicates that you don't want npm to make any changes and that it should |
| 4780 |
|
| 4781 |
-w|--workspace |
| 4782 |
Enable running a command in the context of the configured workspaces of the |
| 4783 |
|
| 4784 |
--workspaces |
| 4785 |
Set to true to run the command in the context of **all** configured |
| 4786 |
|
| 4787 |
--include-workspace-root |
| 4788 |
Include the workspace root when workspaces are enabled for a command. |
| 4789 |
|
| 4790 |
--install-links |
| 4791 |
When set file: protocol dependencies will be packed and installed as |
| 4792 |
|
| 4793 |
|
| 4794 |
alias: ln |
| 4795 |
|
| 4796 |
Run "npm help link" for more info |
| 4797 |
|
| 4798 |
\`\`\`bash |
| 4799 |
npm link [<package-spec>] |
| 4800 |
|
| 4801 |
alias: ln |
| 4802 |
\`\`\` |
| 4803 |
|
| 4804 |
#### \`save\` |
| 4805 |
#### \`save-exact\` |
| 4806 |
#### \`global\` |
| 4807 |
#### \`install-strategy\` |
| 4808 |
#### \`legacy-bundling\` |
| 4809 |
#### \`global-style\` |
| 4810 |
#### \`strict-peer-deps\` |
| 4811 |
#### \`package-lock\` |
| 4812 |
#### \`omit\` |
| 4813 |
#### \`include\` |
| 4814 |
#### \`ignore-scripts\` |
| 4815 |
#### \`allow-directory\` |
| 4816 |
#### \`allow-file\` |
| 4817 |
#### \`allow-git\` |
| 4818 |
#### \`allow-remote\` |
| 4819 |
#### \`audit\` |
| 4820 |
#### \`bin-links\` |
| 4821 |
#### \`fund\` |
| 4822 |
#### \`dry-run\` |
| 4823 |
#### \`workspace\` |
| 4824 |
#### \`workspaces\` |
| 4825 |
#### \`include-workspace-root\` |
| 4826 |
#### \`install-links\` |
| 4827 |
` |
| 4828 |
|
| 4829 |
exports[`test/lib/docs.js TAP usage ll > must match snapshot 1`] = ` |
| 4830 |
List installed packages |
| 4831 |
|
| 4832 |
Usage: |
| 4833 |
npm ll [[<@scope>/]<pkg> ...] |
| 4834 |
|
| 4835 |
Options: |
| 4836 |
[-a|--all] [--json] [-l|--long] [-p|--parseable] [-g|--global] [--depth <depth>] |
| 4837 |
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] |
| 4838 |
[--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]] |
| 4839 |
[--link] [--package-lock-only] [--unicode] |
| 4840 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 4841 |
[--workspaces] [--include-workspace-root] [--install-links] |
| 4842 |
|
| 4843 |
-a|--all |
| 4844 |
When running \`npm outdated\` and \`npm ls\`, setting \`--all\` will show |
| 4845 |
|
| 4846 |
--json |
| 4847 |
Whether or not to output JSON data, rather than the normal output. |
| 4848 |
|
| 4849 |
-l|--long |
| 4850 |
Show extended information in \`ls\`, \`search\`, and \`help-search\`. |
| 4851 |
|
| 4852 |
-p|--parseable |
| 4853 |
Output parseable results from commands that write to standard output. For |
| 4854 |
|
| 4855 |
-g|--global |
| 4856 |
Operates in "global" mode, so that packages are installed into the |
| 4857 |
|
| 4858 |
--depth |
| 4859 |
The depth to go when recursing packages for \`npm ls\`. |
| 4860 |
|
| 4861 |
--omit |
| 4862 |
Dependency types to omit from the installation tree on disk. |
| 4863 |
|
| 4864 |
--include |
| 4865 |
Option that allows for defining which types of dependencies to install. |
| 4866 |
|
| 4867 |
--link |
| 4868 |
Used with \`npm ls\`, limiting output to only those packages that are |
| 4869 |
|
| 4870 |
--package-lock-only |
| 4871 |
If set to true, the current operation will only use the \`package-lock.json\`, |
| 4872 |
|
| 4873 |
--unicode |
| 4874 |
When set to true, npm uses unicode characters in the tree output. When |
| 4875 |
|
| 4876 |
-w|--workspace |
| 4877 |
Enable running a command in the context of the configured workspaces of the |
| 4878 |
|
| 4879 |
--workspaces |
| 4880 |
Set to true to run the command in the context of **all** configured |
| 4881 |
|
| 4882 |
--include-workspace-root |
| 4883 |
Include the workspace root when workspaces are enabled for a command. |
| 4884 |
|
| 4885 |
--install-links |
| 4886 |
When set file: protocol dependencies will be packed and installed as |
| 4887 |
|
| 4888 |
|
| 4889 |
alias: la |
| 4890 |
|
| 4891 |
Run "npm help ll" for more info |
| 4892 |
|
| 4893 |
\`\`\`bash |
| 4894 |
npm ll [[<@scope>/]<pkg> ...] |
| 4895 |
|
| 4896 |
alias: la |
| 4897 |
\`\`\` |
| 4898 |
|
| 4899 |
#### \`all\` |
| 4900 |
#### \`json\` |
| 4901 |
#### \`long\` |
| 4902 |
#### \`parseable\` |
| 4903 |
#### \`global\` |
| 4904 |
#### \`depth\` |
| 4905 |
#### \`omit\` |
| 4906 |
#### \`include\` |
| 4907 |
#### \`link\` |
| 4908 |
#### \`package-lock-only\` |
| 4909 |
#### \`unicode\` |
| 4910 |
#### \`workspace\` |
| 4911 |
#### \`workspaces\` |
| 4912 |
#### \`include-workspace-root\` |
| 4913 |
#### \`install-links\` |
| 4914 |
` |
| 4915 |
|
| 4916 |
exports[`test/lib/docs.js TAP usage login > must match snapshot 1`] = ` |
| 4917 |
Login to a registry user account |
| 4918 |
|
| 4919 |
Usage: |
| 4920 |
npm login |
| 4921 |
|
| 4922 |
Options: |
| 4923 |
[--registry <registry>] [--scope <@scope>] [--auth-type <legacy|web>] |
| 4924 |
|
| 4925 |
--registry |
| 4926 |
The base URL of the npm registry. |
| 4927 |
|
| 4928 |
--scope |
| 4929 |
Associate an operation with a scope for a scoped registry. |
| 4930 |
|
| 4931 |
--auth-type |
| 4932 |
What authentication strategy to use with \`login\`. |
| 4933 |
|
| 4934 |
|
| 4935 |
Run "npm help login" for more info |
| 4936 |
|
| 4937 |
\`\`\`bash |
| 4938 |
npm login |
| 4939 |
\`\`\` |
| 4940 |
|
| 4941 |
Note: This command is unaware of workspaces. |
| 4942 |
|
| 4943 |
#### \`registry\` |
| 4944 |
#### \`scope\` |
| 4945 |
#### \`auth-type\` |
| 4946 |
` |
| 4947 |
|
| 4948 |
exports[`test/lib/docs.js TAP usage logout > must match snapshot 1`] = ` |
| 4949 |
Log out of the registry |
| 4950 |
|
| 4951 |
Usage: |
| 4952 |
npm logout |
| 4953 |
|
| 4954 |
Options: |
| 4955 |
[--registry <registry>] [--scope <@scope>] |
| 4956 |
|
| 4957 |
--registry |
| 4958 |
The base URL of the npm registry. |
| 4959 |
|
| 4960 |
--scope |
| 4961 |
Associate an operation with a scope for a scoped registry. |
| 4962 |
|
| 4963 |
|
| 4964 |
Run "npm help logout" for more info |
| 4965 |
|
| 4966 |
\`\`\`bash |
| 4967 |
npm logout |
| 4968 |
\`\`\` |
| 4969 |
|
| 4970 |
Note: This command is unaware of workspaces. |
| 4971 |
|
| 4972 |
#### \`registry\` |
| 4973 |
#### \`scope\` |
| 4974 |
` |
| 4975 |
|
| 4976 |
exports[`test/lib/docs.js TAP usage ls > must match snapshot 1`] = ` |
| 4977 |
List installed packages |
| 4978 |
|
| 4979 |
Usage: |
| 4980 |
npm ls <package-spec> |
| 4981 |
|
| 4982 |
Options: |
| 4983 |
[-a|--all] [--json] [-l|--long] [-p|--parseable] [-g|--global] [--depth <depth>] |
| 4984 |
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] |
| 4985 |
[--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]] |
| 4986 |
[--link] [--package-lock-only] [--unicode] |
| 4987 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 4988 |
[--workspaces] [--include-workspace-root] [--install-links] |
| 4989 |
|
| 4990 |
-a|--all |
| 4991 |
When running \`npm outdated\` and \`npm ls\`, setting \`--all\` will show |
| 4992 |
|
| 4993 |
--json |
| 4994 |
Whether or not to output JSON data, rather than the normal output. |
| 4995 |
|
| 4996 |
-l|--long |
| 4997 |
Show extended information in \`ls\`, \`search\`, and \`help-search\`. |
| 4998 |
|
| 4999 |
-p|--parseable |
| 5000 |
Output parseable results from commands that write to standard output. For |
| 5001 |
|
| 5002 |
-g|--global |
| 5003 |
Operates in "global" mode, so that packages are installed into the |
| 5004 |
|
| 5005 |
--depth |
| 5006 |
The depth to go when recursing packages for \`npm ls\`. |
| 5007 |
|
| 5008 |
--omit |
| 5009 |
Dependency types to omit from the installation tree on disk. |
| 5010 |
|
| 5011 |
--include |
| 5012 |
Option that allows for defining which types of dependencies to install. |
| 5013 |
|
| 5014 |
--link |
| 5015 |
Used with \`npm ls\`, limiting output to only those packages that are |
| 5016 |
|
| 5017 |
--package-lock-only |
| 5018 |
If set to true, the current operation will only use the \`package-lock.json\`, |
| 5019 |
|
| 5020 |
--unicode |
| 5021 |
When set to true, npm uses unicode characters in the tree output. When |
| 5022 |
|
| 5023 |
-w|--workspace |
| 5024 |
Enable running a command in the context of the configured workspaces of the |
| 5025 |
|
| 5026 |
--workspaces |
| 5027 |
Set to true to run the command in the context of **all** configured |
| 5028 |
|
| 5029 |
--include-workspace-root |
| 5030 |
Include the workspace root when workspaces are enabled for a command. |
| 5031 |
|
| 5032 |
--install-links |
| 5033 |
When set file: protocol dependencies will be packed and installed as |
| 5034 |
|
| 5035 |
|
| 5036 |
alias: list |
| 5037 |
|
| 5038 |
Run "npm help ls" for more info |
| 5039 |
|
| 5040 |
\`\`\`bash |
| 5041 |
npm ls <package-spec> |
| 5042 |
|
| 5043 |
alias: list |
| 5044 |
\`\`\` |
| 5045 |
|
| 5046 |
#### \`all\` |
| 5047 |
#### \`json\` |
| 5048 |
#### \`long\` |
| 5049 |
#### \`parseable\` |
| 5050 |
#### \`global\` |
| 5051 |
#### \`depth\` |
| 5052 |
#### \`omit\` |
| 5053 |
#### \`include\` |
| 5054 |
#### \`link\` |
| 5055 |
#### \`package-lock-only\` |
| 5056 |
#### \`unicode\` |
| 5057 |
#### \`workspace\` |
| 5058 |
#### \`workspaces\` |
| 5059 |
#### \`include-workspace-root\` |
| 5060 |
#### \`install-links\` |
| 5061 |
` |
| 5062 |
|
| 5063 |
exports[`test/lib/docs.js TAP usage npm > must match snapshot 1`] = ` |
| 5064 |
\`\`\`bash |
| 5065 |
npm |
| 5066 |
\`\`\` |
| 5067 |
|
| 5068 |
Note: This command is unaware of workspaces. |
| 5069 |
|
| 5070 |
NO PARAMS |
| 5071 |
` |
| 5072 |
|
| 5073 |
exports[`test/lib/docs.js TAP usage npx > must match snapshot 1`] = ` |
| 5074 |
\`\`\`bash |
| 5075 |
npx -- <pkg>[@<version>] [args...] |
| 5076 |
npx --package=<pkg>[@<version>] -- <cmd> [args...] |
| 5077 |
npx -c '<cmd> [args...]' |
| 5078 |
npx --package=foo -c '<cmd> [args...]' |
| 5079 |
\`\`\` |
| 5080 |
|
| 5081 |
NO PARAMS |
| 5082 |
` |
| 5083 |
|
| 5084 |
exports[`test/lib/docs.js TAP usage org > must match snapshot 1`] = ` |
| 5085 |
Manage orgs |
| 5086 |
|
| 5087 |
Usage: |
| 5088 |
npm org set orgname username [developer | admin | owner] |
| 5089 |
npm org rm orgname username |
| 5090 |
npm org ls orgname [<username>] |
| 5091 |
|
| 5092 |
Options: |
| 5093 |
[--registry <registry>] [--otp <otp>] [--json] [-p|--parseable] |
| 5094 |
|
| 5095 |
--registry |
| 5096 |
The base URL of the npm registry. |
| 5097 |
|
| 5098 |
--otp |
| 5099 |
This is a one-time password from a two-factor authenticator. It's needed |
| 5100 |
|
| 5101 |
--json |
| 5102 |
Whether or not to output JSON data, rather than the normal output. |
| 5103 |
|
| 5104 |
-p|--parseable |
| 5105 |
Output parseable results from commands that write to standard output. For |
| 5106 |
|
| 5107 |
|
| 5108 |
alias: ogr |
| 5109 |
|
| 5110 |
Run "npm help org" for more info |
| 5111 |
|
| 5112 |
\`\`\`bash |
| 5113 |
npm org set orgname username [developer | admin | owner] |
| 5114 |
npm org rm orgname username |
| 5115 |
npm org ls orgname [<username>] |
| 5116 |
|
| 5117 |
alias: ogr |
| 5118 |
\`\`\` |
| 5119 |
|
| 5120 |
Note: This command is unaware of workspaces. |
| 5121 |
|
| 5122 |
#### \`registry\` |
| 5123 |
#### \`otp\` |
| 5124 |
#### \`json\` |
| 5125 |
#### \`parseable\` |
| 5126 |
` |
| 5127 |
|
| 5128 |
exports[`test/lib/docs.js TAP usage outdated > must match snapshot 1`] = ` |
| 5129 |
Check for outdated packages |
| 5130 |
|
| 5131 |
Usage: |
| 5132 |
npm outdated [<package-spec> ...] |
| 5133 |
|
| 5134 |
Options: |
| 5135 |
[-a|--all] [--json] [-l|--long] [-p|--parseable] [-g|--global] |
| 5136 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 5137 |
[--before <date>] [--min-release-age <days>] |
| 5138 |
|
| 5139 |
-a|--all |
| 5140 |
When running \`npm outdated\` and \`npm ls\`, setting \`--all\` will show |
| 5141 |
|
| 5142 |
--json |
| 5143 |
Whether or not to output JSON data, rather than the normal output. |
| 5144 |
|
| 5145 |
-l|--long |
| 5146 |
Show extended information in \`ls\`, \`search\`, and \`help-search\`. |
| 5147 |
|
| 5148 |
-p|--parseable |
| 5149 |
Output parseable results from commands that write to standard output. For |
| 5150 |
|
| 5151 |
-g|--global |
| 5152 |
Operates in "global" mode, so that packages are installed into the |
| 5153 |
|
| 5154 |
-w|--workspace |
| 5155 |
Enable running a command in the context of the configured workspaces of the |
| 5156 |
|
| 5157 |
--before |
| 5158 |
If passed to \`npm install\`, will rebuild the npm tree such that only |
| 5159 |
|
| 5160 |
--min-release-age |
| 5161 |
If set, npm will build the npm tree such that only versions that were |
| 5162 |
|
| 5163 |
|
| 5164 |
Run "npm help outdated" for more info |
| 5165 |
|
| 5166 |
\`\`\`bash |
| 5167 |
npm outdated [<package-spec> ...] |
| 5168 |
\`\`\` |
| 5169 |
|
| 5170 |
#### \`all\` |
| 5171 |
#### \`json\` |
| 5172 |
#### \`long\` |
| 5173 |
#### \`parseable\` |
| 5174 |
#### \`global\` |
| 5175 |
#### \`workspace\` |
| 5176 |
#### \`before\` |
| 5177 |
#### \`min-release-age\` |
| 5178 |
` |
| 5179 |
|
| 5180 |
exports[`test/lib/docs.js TAP usage owner > must match snapshot 1`] = ` |
| 5181 |
Manage package owners |
| 5182 |
|
| 5183 |
Usage: |
| 5184 |
npm owner add <user> <package-spec> |
| 5185 |
npm owner rm <user> <package-spec> |
| 5186 |
npm owner ls <package-spec> |
| 5187 |
|
| 5188 |
Options: |
| 5189 |
[--registry <registry>] [--otp <otp>] |
| 5190 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 5191 |
[--workspaces] |
| 5192 |
|
| 5193 |
--registry |
| 5194 |
The base URL of the npm registry. |
| 5195 |
|
| 5196 |
--otp |
| 5197 |
This is a one-time password from a two-factor authenticator. It's needed |
| 5198 |
|
| 5199 |
-w|--workspace |
| 5200 |
Enable running a command in the context of the configured workspaces of the |
| 5201 |
|
| 5202 |
--workspaces |
| 5203 |
Set to true to run the command in the context of **all** configured |
| 5204 |
|
| 5205 |
|
| 5206 |
alias: author |
| 5207 |
|
| 5208 |
Run "npm help owner" for more info |
| 5209 |
|
| 5210 |
\`\`\`bash |
| 5211 |
npm owner add <user> <package-spec> |
| 5212 |
npm owner rm <user> <package-spec> |
| 5213 |
npm owner ls <package-spec> |
| 5214 |
|
| 5215 |
alias: author |
| 5216 |
\`\`\` |
| 5217 |
|
| 5218 |
#### \`registry\` |
| 5219 |
#### \`otp\` |
| 5220 |
#### \`workspace\` |
| 5221 |
#### \`workspaces\` |
| 5222 |
` |
| 5223 |
|
| 5224 |
exports[`test/lib/docs.js TAP usage pack > must match snapshot 1`] = ` |
| 5225 |
Create a tarball from a package |
| 5226 |
|
| 5227 |
Usage: |
| 5228 |
npm pack <package-spec> |
| 5229 |
|
| 5230 |
Options: |
| 5231 |
[--dry-run] [--json] [--pack-destination <pack-destination>] |
| 5232 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 5233 |
[--workspaces] [--include-workspace-root] [--ignore-scripts] |
| 5234 |
|
| 5235 |
--dry-run |
| 5236 |
Indicates that you don't want npm to make any changes and that it should |
| 5237 |
|
| 5238 |
--json |
| 5239 |
Whether or not to output JSON data, rather than the normal output. |
| 5240 |
|
| 5241 |
--pack-destination |
| 5242 |
Directory in which \`npm pack\` will save tarballs. |
| 5243 |
|
| 5244 |
-w|--workspace |
| 5245 |
Enable running a command in the context of the configured workspaces of the |
| 5246 |
|
| 5247 |
--workspaces |
| 5248 |
Set to true to run the command in the context of **all** configured |
| 5249 |
|
| 5250 |
--include-workspace-root |
| 5251 |
Include the workspace root when workspaces are enabled for a command. |
| 5252 |
|
| 5253 |
--ignore-scripts |
| 5254 |
If true, npm does not run scripts specified in package.json files. |
| 5255 |
|
| 5256 |
|
| 5257 |
Run "npm help pack" for more info |
| 5258 |
|
| 5259 |
\`\`\`bash |
| 5260 |
npm pack <package-spec> |
| 5261 |
\`\`\` |
| 5262 |
|
| 5263 |
#### \`dry-run\` |
| 5264 |
#### \`json\` |
| 5265 |
#### \`pack-destination\` |
| 5266 |
#### \`workspace\` |
| 5267 |
#### \`workspaces\` |
| 5268 |
#### \`include-workspace-root\` |
| 5269 |
#### \`ignore-scripts\` |
| 5270 |
` |
| 5271 |
|
| 5272 |
exports[`test/lib/docs.js TAP usage ping > must match snapshot 1`] = ` |
| 5273 |
Ping npm registry |
| 5274 |
|
| 5275 |
Usage: |
| 5276 |
npm ping |
| 5277 |
|
| 5278 |
Options: |
| 5279 |
[--registry <registry>] |
| 5280 |
|
| 5281 |
--registry |
| 5282 |
The base URL of the npm registry. |
| 5283 |
|
| 5284 |
|
| 5285 |
Run "npm help ping" for more info |
| 5286 |
|
| 5287 |
\`\`\`bash |
| 5288 |
npm ping |
| 5289 |
\`\`\` |
| 5290 |
|
| 5291 |
Note: This command is unaware of workspaces. |
| 5292 |
|
| 5293 |
#### \`registry\` |
| 5294 |
` |
| 5295 |
|
| 5296 |
exports[`test/lib/docs.js TAP usage pkg > must match snapshot 1`] = ` |
| 5297 |
Manages your package.json |
| 5298 |
|
| 5299 |
Usage: |
| 5300 |
npm pkg set <key>=<value> [<key>=<value> ...] |
| 5301 |
npm pkg get [<key> [<key> ...]] |
| 5302 |
npm pkg delete <key> [<key> ...] |
| 5303 |
npm pkg set [<array>[<index>].<key>=<value> ...] |
| 5304 |
npm pkg set [<array>[].<key>=<value> ...] |
| 5305 |
npm pkg fix |
| 5306 |
|
| 5307 |
Options: |
| 5308 |
[-f|--force] [--json] |
| 5309 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 5310 |
[--workspaces] |
| 5311 |
|
| 5312 |
-f|--force |
| 5313 |
Removes various protections against unfortunate side effects, common |
| 5314 |
|
| 5315 |
--json |
| 5316 |
Whether or not to output JSON data, rather than the normal output. |
| 5317 |
|
| 5318 |
-w|--workspace |
| 5319 |
Enable running a command in the context of the configured workspaces of the |
| 5320 |
|
| 5321 |
--workspaces |
| 5322 |
Set to true to run the command in the context of **all** configured |
| 5323 |
|
| 5324 |
|
| 5325 |
Run "npm help pkg" for more info |
| 5326 |
|
| 5327 |
\`\`\`bash |
| 5328 |
npm pkg set <key>=<value> [<key>=<value> ...] |
| 5329 |
npm pkg get [<key> [<key> ...]] |
| 5330 |
npm pkg delete <key> [<key> ...] |
| 5331 |
npm pkg set [<array>[<index>].<key>=<value> ...] |
| 5332 |
npm pkg set [<array>[].<key>=<value> ...] |
| 5333 |
npm pkg fix |
| 5334 |
\`\`\` |
| 5335 |
|
| 5336 |
#### \`force\` |
| 5337 |
#### \`json\` |
| 5338 |
#### \`workspace\` |
| 5339 |
#### \`workspaces\` |
| 5340 |
` |
| 5341 |
|
| 5342 |
exports[`test/lib/docs.js TAP usage prefix > must match snapshot 1`] = ` |
| 5343 |
Display prefix |
| 5344 |
|
| 5345 |
Usage: |
| 5346 |
npm prefix |
| 5347 |
|
| 5348 |
Options: |
| 5349 |
[-g|--global] |
| 5350 |
|
| 5351 |
-g|--global |
| 5352 |
Operates in "global" mode, so that packages are installed into the |
| 5353 |
|
| 5354 |
|
| 5355 |
Run "npm help prefix" for more info |
| 5356 |
|
| 5357 |
\`\`\`bash |
| 5358 |
npm prefix |
| 5359 |
\`\`\` |
| 5360 |
|
| 5361 |
Note: This command is unaware of workspaces. |
| 5362 |
|
| 5363 |
#### \`global\` |
| 5364 |
` |
| 5365 |
|
| 5366 |
exports[`test/lib/docs.js TAP usage profile > must match snapshot 1`] = ` |
| 5367 |
Change settings on your registry profile |
| 5368 |
|
| 5369 |
Usage: |
| 5370 |
npm profile enable-2fa [auth-only|auth-and-writes] |
| 5371 |
npm profile disable-2fa |
| 5372 |
npm profile get [<key>] |
| 5373 |
npm profile set <key> <value> |
| 5374 |
|
| 5375 |
Options: |
| 5376 |
[--registry <registry>] [--json] [-p|--parseable] [--otp <otp>] |
| 5377 |
|
| 5378 |
--registry |
| 5379 |
The base URL of the npm registry. |
| 5380 |
|
| 5381 |
--json |
| 5382 |
Whether or not to output JSON data, rather than the normal output. |
| 5383 |
|
| 5384 |
-p|--parseable |
| 5385 |
Output parseable results from commands that write to standard output. For |
| 5386 |
|
| 5387 |
--otp |
| 5388 |
This is a one-time password from a two-factor authenticator. It's needed |
| 5389 |
|
| 5390 |
|
| 5391 |
Run "npm help profile" for more info |
| 5392 |
|
| 5393 |
\`\`\`bash |
| 5394 |
npm profile enable-2fa [auth-only|auth-and-writes] |
| 5395 |
npm profile disable-2fa |
| 5396 |
npm profile get [<key>] |
| 5397 |
npm profile set <key> <value> |
| 5398 |
\`\`\` |
| 5399 |
|
| 5400 |
Note: This command is unaware of workspaces. |
| 5401 |
|
| 5402 |
#### \`registry\` |
| 5403 |
#### \`json\` |
| 5404 |
#### \`parseable\` |
| 5405 |
#### \`otp\` |
| 5406 |
` |
| 5407 |
|
| 5408 |
exports[`test/lib/docs.js TAP usage prune > must match snapshot 1`] = ` |
| 5409 |
Remove extraneous packages |
| 5410 |
|
| 5411 |
Usage: |
| 5412 |
npm prune [[<@scope>/]<pkg>...] |
| 5413 |
|
| 5414 |
Options: |
| 5415 |
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] |
| 5416 |
[--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]] |
| 5417 |
[--dry-run] [--json] [--foreground-scripts] [--ignore-scripts] |
| 5418 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 5419 |
[--workspaces] [--include-workspace-root] [--install-links] |
| 5420 |
|
| 5421 |
--omit |
| 5422 |
Dependency types to omit from the installation tree on disk. |
| 5423 |
|
| 5424 |
--include |
| 5425 |
Option that allows for defining which types of dependencies to install. |
| 5426 |
|
| 5427 |
--dry-run |
| 5428 |
Indicates that you don't want npm to make any changes and that it should |
| 5429 |
|
| 5430 |
--json |
| 5431 |
Whether or not to output JSON data, rather than the normal output. |
| 5432 |
|
| 5433 |
--foreground-scripts |
| 5434 |
Run all build scripts (ie, \`preinstall\`, \`install\`, and |
| 5435 |
|
| 5436 |
--ignore-scripts |
| 5437 |
If true, npm does not run scripts specified in package.json files. |
| 5438 |
|
| 5439 |
-w|--workspace |
| 5440 |
Enable running a command in the context of the configured workspaces of the |
| 5441 |
|
| 5442 |
--workspaces |
| 5443 |
Set to true to run the command in the context of **all** configured |
| 5444 |
|
| 5445 |
--include-workspace-root |
| 5446 |
Include the workspace root when workspaces are enabled for a command. |
| 5447 |
|
| 5448 |
--install-links |
| 5449 |
When set file: protocol dependencies will be packed and installed as |
| 5450 |
|
| 5451 |
|
| 5452 |
Run "npm help prune" for more info |
| 5453 |
|
| 5454 |
\`\`\`bash |
| 5455 |
npm prune [[<@scope>/]<pkg>...] |
| 5456 |
\`\`\` |
| 5457 |
|
| 5458 |
#### \`omit\` |
| 5459 |
#### \`include\` |
| 5460 |
#### \`dry-run\` |
| 5461 |
#### \`json\` |
| 5462 |
#### \`foreground-scripts\` |
| 5463 |
#### \`ignore-scripts\` |
| 5464 |
#### \`workspace\` |
| 5465 |
#### \`workspaces\` |
| 5466 |
#### \`include-workspace-root\` |
| 5467 |
#### \`install-links\` |
| 5468 |
` |
| 5469 |
|
| 5470 |
exports[`test/lib/docs.js TAP usage publish > must match snapshot 1`] = ` |
| 5471 |
Publish a package |
| 5472 |
|
| 5473 |
Usage: |
| 5474 |
npm publish <package-spec> |
| 5475 |
|
| 5476 |
Options: |
| 5477 |
[--tag <tag>] [--access <restricted|public|private>] [--dry-run] [--otp <otp>] |
| 5478 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 5479 |
[--workspaces] [--include-workspace-root] [--provenance|--provenance-file <file>] |
| 5480 |
|
| 5481 |
--tag |
| 5482 |
If you ask npm to install a package and don't tell it a specific version, |
| 5483 |
|
| 5484 |
--access |
| 5485 |
If you do not want your scoped package to be publicly viewable (and |
| 5486 |
|
| 5487 |
--dry-run |
| 5488 |
Indicates that you don't want npm to make any changes and that it should |
| 5489 |
|
| 5490 |
--otp |
| 5491 |
This is a one-time password from a two-factor authenticator. It's needed |
| 5492 |
|
| 5493 |
-w|--workspace |
| 5494 |
Enable running a command in the context of the configured workspaces of the |
| 5495 |
|
| 5496 |
--workspaces |
| 5497 |
Set to true to run the command in the context of **all** configured |
| 5498 |
|
| 5499 |
--include-workspace-root |
| 5500 |
Include the workspace root when workspaces are enabled for a command. |
| 5501 |
|
| 5502 |
--provenance |
| 5503 |
When publishing from a supported cloud CI/CD system, the package will be |
| 5504 |
|
| 5505 |
|
| 5506 |
Run "npm help publish" for more info |
| 5507 |
|
| 5508 |
\`\`\`bash |
| 5509 |
npm publish <package-spec> |
| 5510 |
\`\`\` |
| 5511 |
|
| 5512 |
#### \`tag\` |
| 5513 |
#### \`access\` |
| 5514 |
#### \`dry-run\` |
| 5515 |
#### \`otp\` |
| 5516 |
#### \`workspace\` |
| 5517 |
#### \`workspaces\` |
| 5518 |
#### \`include-workspace-root\` |
| 5519 |
#### \`provenance\` |
| 5520 |
#### \`provenance-file\` |
| 5521 |
` |
| 5522 |
|
| 5523 |
exports[`test/lib/docs.js TAP usage query > must match snapshot 1`] = ` |
| 5524 |
Retrieve a filtered list of packages |
| 5525 |
|
| 5526 |
Usage: |
| 5527 |
npm query <selector> |
| 5528 |
|
| 5529 |
Options: |
| 5530 |
[-g|--global] |
| 5531 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 5532 |
[--workspaces] [--include-workspace-root] [--package-lock-only] |
| 5533 |
[--expect-results|--expect-result-count <count>] |
| 5534 |
|
| 5535 |
-g|--global |
| 5536 |
Operates in "global" mode, so that packages are installed into the |
| 5537 |
|
| 5538 |
-w|--workspace |
| 5539 |
Enable running a command in the context of the configured workspaces of the |
| 5540 |
|
| 5541 |
--workspaces |
| 5542 |
Set to true to run the command in the context of **all** configured |
| 5543 |
|
| 5544 |
--include-workspace-root |
| 5545 |
Include the workspace root when workspaces are enabled for a command. |
| 5546 |
|
| 5547 |
--package-lock-only |
| 5548 |
If set to true, the current operation will only use the \`package-lock.json\`, |
| 5549 |
|
| 5550 |
--expect-results |
| 5551 |
Tells npm whether or not to expect results from the command. |
| 5552 |
|
| 5553 |
|
| 5554 |
Run "npm help query" for more info |
| 5555 |
|
| 5556 |
\`\`\`bash |
| 5557 |
npm query <selector> |
| 5558 |
\`\`\` |
| 5559 |
|
| 5560 |
#### \`global\` |
| 5561 |
#### \`workspace\` |
| 5562 |
#### \`workspaces\` |
| 5563 |
#### \`include-workspace-root\` |
| 5564 |
#### \`package-lock-only\` |
| 5565 |
#### \`expect-results\` |
| 5566 |
#### \`expect-result-count\` |
| 5567 |
` |
| 5568 |
|
| 5569 |
exports[`test/lib/docs.js TAP usage rebuild > must match snapshot 1`] = ` |
| 5570 |
Rebuild a package |
| 5571 |
|
| 5572 |
Usage: |
| 5573 |
npm rebuild [<package-spec>] ...] |
| 5574 |
|
| 5575 |
Options: |
| 5576 |
[-g|--global] [--no-bin-links] [--foreground-scripts] [--ignore-scripts] |
| 5577 |
[--allow-scripts <package-list> [--allow-scripts <package-list> ...]] |
| 5578 |
[--strict-allow-scripts] [--dangerously-allow-all-scripts] |
| 5579 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 5580 |
[--workspaces] [--include-workspace-root] [--install-links] |
| 5581 |
|
| 5582 |
-g|--global |
| 5583 |
Operates in "global" mode, so that packages are installed into the |
| 5584 |
|
| 5585 |
--bin-links |
| 5586 |
Tells npm to create symlinks (or \`.cmd\` shims on Windows) for package |
| 5587 |
|
| 5588 |
--foreground-scripts |
| 5589 |
Run all build scripts (ie, \`preinstall\`, \`install\`, and |
| 5590 |
|
| 5591 |
--ignore-scripts |
| 5592 |
If true, npm does not run scripts specified in package.json files. |
| 5593 |
|
| 5594 |
--allow-scripts |
| 5595 |
Comma-separated list of packages whose install-time lifecycle scripts |
| 5596 |
|
| 5597 |
--strict-allow-scripts |
| 5598 |
If \`true\`, turn the install-script policy from a warning into a hard |
| 5599 |
|
| 5600 |
--dangerously-allow-all-scripts |
| 5601 |
If \`true\`, bypass the \`allowScripts\` policy entirely and run every |
| 5602 |
|
| 5603 |
-w|--workspace |
| 5604 |
Enable running a command in the context of the configured workspaces of the |
| 5605 |
|
| 5606 |
--workspaces |
| 5607 |
Set to true to run the command in the context of **all** configured |
| 5608 |
|
| 5609 |
--include-workspace-root |
| 5610 |
Include the workspace root when workspaces are enabled for a command. |
| 5611 |
|
| 5612 |
--install-links |
| 5613 |
When set file: protocol dependencies will be packed and installed as |
| 5614 |
|
| 5615 |
|
| 5616 |
alias: rb |
| 5617 |
|
| 5618 |
Run "npm help rebuild" for more info |
| 5619 |
|
| 5620 |
\`\`\`bash |
| 5621 |
npm rebuild [<package-spec>] ...] |
| 5622 |
|
| 5623 |
alias: rb |
| 5624 |
\`\`\` |
| 5625 |
|
| 5626 |
#### \`global\` |
| 5627 |
#### \`bin-links\` |
| 5628 |
#### \`foreground-scripts\` |
| 5629 |
#### \`ignore-scripts\` |
| 5630 |
#### \`allow-scripts\` |
| 5631 |
#### \`strict-allow-scripts\` |
| 5632 |
#### \`dangerously-allow-all-scripts\` |
| 5633 |
#### \`workspace\` |
| 5634 |
#### \`workspaces\` |
| 5635 |
#### \`include-workspace-root\` |
| 5636 |
#### \`install-links\` |
| 5637 |
` |
| 5638 |
|
| 5639 |
exports[`test/lib/docs.js TAP usage repo > must match snapshot 1`] = ` |
| 5640 |
Open package repository page in the browser |
| 5641 |
|
| 5642 |
Usage: |
| 5643 |
npm repo [<pkgname> [<pkgname> ...]] |
| 5644 |
|
| 5645 |
Options: |
| 5646 |
[--no-browser|--browser <browser>] [--registry <registry>] |
| 5647 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 5648 |
[--workspaces] [--include-workspace-root] |
| 5649 |
|
| 5650 |
--browser |
| 5651 |
The browser that is called by npm commands to open websites. |
| 5652 |
|
| 5653 |
--registry |
| 5654 |
The base URL of the npm registry. |
| 5655 |
|
| 5656 |
-w|--workspace |
| 5657 |
Enable running a command in the context of the configured workspaces of the |
| 5658 |
|
| 5659 |
--workspaces |
| 5660 |
Set to true to run the command in the context of **all** configured |
| 5661 |
|
| 5662 |
--include-workspace-root |
| 5663 |
Include the workspace root when workspaces are enabled for a command. |
| 5664 |
|
| 5665 |
|
| 5666 |
Run "npm help repo" for more info |
| 5667 |
|
| 5668 |
\`\`\`bash |
| 5669 |
npm repo [<pkgname> [<pkgname> ...]] |
| 5670 |
\`\`\` |
| 5671 |
|
| 5672 |
#### \`browser\` |
| 5673 |
#### \`registry\` |
| 5674 |
#### \`workspace\` |
| 5675 |
#### \`workspaces\` |
| 5676 |
#### \`include-workspace-root\` |
| 5677 |
` |
| 5678 |
|
| 5679 |
exports[`test/lib/docs.js TAP usage restart > must match snapshot 1`] = ` |
| 5680 |
Restart a package |
| 5681 |
|
| 5682 |
Usage: |
| 5683 |
npm restart [-- <args>] |
| 5684 |
|
| 5685 |
Options: |
| 5686 |
[--ignore-scripts] [--script-shell <script-shell>] |
| 5687 |
|
| 5688 |
--ignore-scripts |
| 5689 |
If true, npm does not run scripts specified in package.json files. |
| 5690 |
|
| 5691 |
--script-shell |
| 5692 |
The shell to use for scripts run with the \`npm exec\`, |
| 5693 |
|
| 5694 |
|
| 5695 |
Run "npm help restart" for more info |
| 5696 |
|
| 5697 |
\`\`\`bash |
| 5698 |
npm restart [-- <args>] |
| 5699 |
\`\`\` |
| 5700 |
|
| 5701 |
#### \`ignore-scripts\` |
| 5702 |
#### \`script-shell\` |
| 5703 |
` |
| 5704 |
|
| 5705 |
exports[`test/lib/docs.js TAP usage root > must match snapshot 1`] = ` |
| 5706 |
Display npm root |
| 5707 |
|
| 5708 |
Usage: |
| 5709 |
npm root |
| 5710 |
|
| 5711 |
Options: |
| 5712 |
[-g|--global] |
| 5713 |
|
| 5714 |
-g|--global |
| 5715 |
Operates in "global" mode, so that packages are installed into the |
| 5716 |
|
| 5717 |
|
| 5718 |
Run "npm help root" for more info |
| 5719 |
|
| 5720 |
\`\`\`bash |
| 5721 |
npm root |
| 5722 |
\`\`\` |
| 5723 |
|
| 5724 |
Note: This command is unaware of workspaces. |
| 5725 |
|
| 5726 |
#### \`global\` |
| 5727 |
` |
| 5728 |
|
| 5729 |
exports[`test/lib/docs.js TAP usage run > must match snapshot 1`] = ` |
| 5730 |
Run arbitrary package scripts |
| 5731 |
|
| 5732 |
Usage: |
| 5733 |
npm run <command> [-- <args>] |
| 5734 |
|
| 5735 |
Options: |
| 5736 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 5737 |
[--workspaces] [--include-workspace-root] [--if-present] [--ignore-scripts] |
| 5738 |
[--foreground-scripts] [--script-shell <script-shell>] |
| 5739 |
|
| 5740 |
-w|--workspace |
| 5741 |
Enable running a command in the context of the configured workspaces of the |
| 5742 |
|
| 5743 |
--workspaces |
| 5744 |
Set to true to run the command in the context of **all** configured |
| 5745 |
|
| 5746 |
--include-workspace-root |
| 5747 |
Include the workspace root when workspaces are enabled for a command. |
| 5748 |
|
| 5749 |
--if-present |
| 5750 |
If true, npm will not exit with an error code when \`run\` is |
| 5751 |
|
| 5752 |
--ignore-scripts |
| 5753 |
If true, npm does not run scripts specified in package.json files. |
| 5754 |
|
| 5755 |
--foreground-scripts |
| 5756 |
Run all build scripts (ie, \`preinstall\`, \`install\`, and |
| 5757 |
|
| 5758 |
--script-shell |
| 5759 |
The shell to use for scripts run with the \`npm exec\`, |
| 5760 |
|
| 5761 |
|
| 5762 |
aliases: run-script, rum, urn |
| 5763 |
|
| 5764 |
Run "npm help run" for more info |
| 5765 |
|
| 5766 |
\`\`\`bash |
| 5767 |
npm run <command> [-- <args>] |
| 5768 |
|
| 5769 |
aliases: run-script, rum, urn |
| 5770 |
\`\`\` |
| 5771 |
|
| 5772 |
#### \`workspace\` |
| 5773 |
#### \`workspaces\` |
| 5774 |
#### \`include-workspace-root\` |
| 5775 |
#### \`if-present\` |
| 5776 |
#### \`ignore-scripts\` |
| 5777 |
#### \`foreground-scripts\` |
| 5778 |
#### \`script-shell\` |
| 5779 |
` |
| 5780 |
|
| 5781 |
exports[`test/lib/docs.js TAP usage sbom > must match snapshot 1`] = ` |
| 5782 |
Generate a Software Bill of Materials (SBOM) |
| 5783 |
|
| 5784 |
Usage: |
| 5785 |
npm sbom |
| 5786 |
|
| 5787 |
Options: |
| 5788 |
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] |
| 5789 |
[--package-lock-only] [--sbom-format <cyclonedx|spdx>] |
| 5790 |
[--sbom-type <library|application|framework>] |
| 5791 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 5792 |
[--workspaces] |
| 5793 |
|
| 5794 |
--omit |
| 5795 |
Dependency types to omit from the installation tree on disk. |
| 5796 |
|
| 5797 |
--package-lock-only |
| 5798 |
If set to true, the current operation will only use the \`package-lock.json\`, |
| 5799 |
|
| 5800 |
--sbom-format |
| 5801 |
SBOM format to use when generating SBOMs. |
| 5802 |
|
| 5803 |
--sbom-type |
| 5804 |
The type of package described by the generated SBOM. For SPDX, this is the |
| 5805 |
|
| 5806 |
-w|--workspace |
| 5807 |
Enable running a command in the context of the configured workspaces of the |
| 5808 |
|
| 5809 |
--workspaces |
| 5810 |
Set to true to run the command in the context of **all** configured |
| 5811 |
|
| 5812 |
|
| 5813 |
Run "npm help sbom" for more info |
| 5814 |
|
| 5815 |
\`\`\`bash |
| 5816 |
npm sbom |
| 5817 |
\`\`\` |
| 5818 |
|
| 5819 |
#### \`omit\` |
| 5820 |
#### \`package-lock-only\` |
| 5821 |
#### \`sbom-format\` |
| 5822 |
#### \`sbom-type\` |
| 5823 |
#### \`workspace\` |
| 5824 |
#### \`workspaces\` |
| 5825 |
` |
| 5826 |
|
| 5827 |
exports[`test/lib/docs.js TAP usage search > must match snapshot 1`] = ` |
| 5828 |
Search for packages |
| 5829 |
|
| 5830 |
Usage: |
| 5831 |
npm search <search term> [<search term> ...] |
| 5832 |
|
| 5833 |
Options: |
| 5834 |
[--json] [--color|--no-color|--color always] [-p|--parseable] [--no-description] |
| 5835 |
[--searchlimit <number>] [--searchopts <searchopts>] |
| 5836 |
[--searchexclude <searchexclude>] [--registry <registry>] [--prefer-online] |
| 5837 |
[--prefer-offline] [--offline] |
| 5838 |
|
| 5839 |
--json |
| 5840 |
Whether or not to output JSON data, rather than the normal output. |
| 5841 |
|
| 5842 |
--color |
| 5843 |
If false, never shows colors. If \`"always"\` then always shows colors. |
| 5844 |
|
| 5845 |
-p|--parseable |
| 5846 |
Output parseable results from commands that write to standard output. For |
| 5847 |
|
| 5848 |
--description |
| 5849 |
Show the description in \`npm search\` |
| 5850 |
|
| 5851 |
--searchlimit |
| 5852 |
Number of items to limit search results to. Will not apply at all to |
| 5853 |
|
| 5854 |
--searchopts |
| 5855 |
Space-separated options that are always passed to search. |
| 5856 |
|
| 5857 |
--searchexclude |
| 5858 |
Space-separated options that limit the results from search. |
| 5859 |
|
| 5860 |
--registry |
| 5861 |
The base URL of the npm registry. |
| 5862 |
|
| 5863 |
--prefer-online |
| 5864 |
If true, staleness checks for cached data will be forced, making the CLI |
| 5865 |
|
| 5866 |
--prefer-offline |
| 5867 |
If true, staleness checks for cached data will be bypassed, but missing |
| 5868 |
|
| 5869 |
--offline |
| 5870 |
Force offline mode: no network requests will be done during install. To allow |
| 5871 |
|
| 5872 |
|
| 5873 |
aliases: find, s, se |
| 5874 |
|
| 5875 |
Run "npm help search" for more info |
| 5876 |
|
| 5877 |
\`\`\`bash |
| 5878 |
npm search <search term> [<search term> ...] |
| 5879 |
|
| 5880 |
aliases: find, s, se |
| 5881 |
\`\`\` |
| 5882 |
|
| 5883 |
Note: This command is unaware of workspaces. |
| 5884 |
|
| 5885 |
#### \`json\` |
| 5886 |
#### \`color\` |
| 5887 |
#### \`parseable\` |
| 5888 |
#### \`description\` |
| 5889 |
#### \`searchlimit\` |
| 5890 |
#### \`searchopts\` |
| 5891 |
#### \`searchexclude\` |
| 5892 |
#### \`registry\` |
| 5893 |
#### \`prefer-online\` |
| 5894 |
#### \`prefer-offline\` |
| 5895 |
#### \`offline\` |
| 5896 |
` |
| 5897 |
|
| 5898 |
exports[`test/lib/docs.js TAP usage set > must match snapshot 1`] = ` |
| 5899 |
Set a value in the npm configuration |
| 5900 |
|
| 5901 |
Usage: |
| 5902 |
npm set <key>=<value> [<key>=<value> ...] (See \`npm config\`) |
| 5903 |
|
| 5904 |
Options: |
| 5905 |
[-g|--global] [-L|--location <global|user|project>] |
| 5906 |
|
| 5907 |
-g|--global |
| 5908 |
Operates in "global" mode, so that packages are installed into the |
| 5909 |
|
| 5910 |
-L|--location |
| 5911 |
When passed to \`npm config\` this refers to which config file to use. |
| 5912 |
|
| 5913 |
|
| 5914 |
Run "npm help set" for more info |
| 5915 |
|
| 5916 |
\`\`\`bash |
| 5917 |
npm set <key>=<value> [<key>=<value> ...] (See \`npm config\`) |
| 5918 |
\`\`\` |
| 5919 |
|
| 5920 |
Note: This command is unaware of workspaces. |
| 5921 |
|
| 5922 |
#### \`global\` |
| 5923 |
#### \`location\` |
| 5924 |
` |
| 5925 |
|
| 5926 |
exports[`test/lib/docs.js TAP usage shrinkwrap > must match snapshot 1`] = ` |
| 5927 |
Lock down dependency versions for publication |
| 5928 |
|
| 5929 |
Usage: |
| 5930 |
npm shrinkwrap |
| 5931 |
|
| 5932 |
Run "npm help shrinkwrap" for more info |
| 5933 |
|
| 5934 |
\`\`\`bash |
| 5935 |
npm shrinkwrap |
| 5936 |
\`\`\` |
| 5937 |
|
| 5938 |
Note: This command is unaware of workspaces. |
| 5939 |
|
| 5940 |
NO PARAMS |
| 5941 |
` |
| 5942 |
|
| 5943 |
exports[`test/lib/docs.js TAP usage stage > must match snapshot 1`] = ` |
| 5944 |
Stage packages for publishing, deferring proof-of-presence (2FA) to a later point in time |
| 5945 |
|
| 5946 |
Usage: |
| 5947 |
npm stage |
| 5948 |
npm stage publish <package-spec> |
| 5949 |
npm stage list [<package-spec>] |
| 5950 |
npm stage view <stage-id> |
| 5951 |
npm stage approve <stage-id> |
| 5952 |
npm stage reject <stage-id> |
| 5953 |
npm stage download <stage-id> |
| 5954 |
|
| 5955 |
Subcommands: |
| 5956 |
publish |
| 5957 |
Stage a package for publishing, deferring proof-of-presence (2FA) to a later point in time |
| 5958 |
|
| 5959 |
list |
| 5960 |
List all staged package versions |
| 5961 |
|
| 5962 |
view |
| 5963 |
View details of a specific staged package |
| 5964 |
|
| 5965 |
approve |
| 5966 |
Approve a staged package, publishing it to the npm registry |
| 5967 |
|
| 5968 |
reject |
| 5969 |
Reject a staged package, removing it from the registry |
| 5970 |
|
| 5971 |
download |
| 5972 |
Download the tarball of a staged package for inspection |
| 5973 |
|
| 5974 |
Run "npm stage <subcommand> --help" for more info on a subcommand. |
| 5975 |
|
| 5976 |
Run "npm help stage" for more info |
| 5977 |
|
| 5978 |
\`\`\`bash |
| 5979 |
npm stage |
| 5980 |
\`\`\` |
| 5981 |
|
| 5982 |
Note: This command is unaware of workspaces. |
| 5983 |
|
| 5984 |
#### Synopsis |
| 5985 |
#### Flags |
| 5986 |
#### Synopsis |
| 5987 |
#### Flags |
| 5988 |
#### Synopsis |
| 5989 |
#### Flags |
| 5990 |
#### Synopsis |
| 5991 |
#### Flags |
| 5992 |
#### Synopsis |
| 5993 |
#### Flags |
| 5994 |
#### Synopsis |
| 5995 |
#### Flags |
| 5996 |
` |
| 5997 |
|
| 5998 |
exports[`test/lib/docs.js TAP usage star > must match snapshot 1`] = ` |
| 5999 |
Mark your favorite packages |
| 6000 |
|
| 6001 |
Usage: |
| 6002 |
npm star [<package-spec>...] |
| 6003 |
|
| 6004 |
Options: |
| 6005 |
[--registry <registry>] [--unicode] [--otp <otp>] |
| 6006 |
|
| 6007 |
--registry |
| 6008 |
The base URL of the npm registry. |
| 6009 |
|
| 6010 |
--unicode |
| 6011 |
When set to true, npm uses unicode characters in the tree output. When |
| 6012 |
|
| 6013 |
--otp |
| 6014 |
This is a one-time password from a two-factor authenticator. It's needed |
| 6015 |
|
| 6016 |
|
| 6017 |
Run "npm help star" for more info |
| 6018 |
|
| 6019 |
\`\`\`bash |
| 6020 |
npm star [<package-spec>...] |
| 6021 |
\`\`\` |
| 6022 |
|
| 6023 |
Note: This command is unaware of workspaces. |
| 6024 |
|
| 6025 |
#### \`registry\` |
| 6026 |
#### \`unicode\` |
| 6027 |
#### \`otp\` |
| 6028 |
` |
| 6029 |
|
| 6030 |
exports[`test/lib/docs.js TAP usage stars > must match snapshot 1`] = ` |
| 6031 |
View packages marked as favorites |
| 6032 |
|
| 6033 |
Usage: |
| 6034 |
npm stars [<user>] |
| 6035 |
|
| 6036 |
Options: |
| 6037 |
[--registry <registry>] |
| 6038 |
|
| 6039 |
--registry |
| 6040 |
The base URL of the npm registry. |
| 6041 |
|
| 6042 |
|
| 6043 |
Run "npm help stars" for more info |
| 6044 |
|
| 6045 |
\`\`\`bash |
| 6046 |
npm stars [<user>] |
| 6047 |
\`\`\` |
| 6048 |
|
| 6049 |
Note: This command is unaware of workspaces. |
| 6050 |
|
| 6051 |
#### \`registry\` |
| 6052 |
` |
| 6053 |
|
| 6054 |
exports[`test/lib/docs.js TAP usage start > must match snapshot 1`] = ` |
| 6055 |
Start a package |
| 6056 |
|
| 6057 |
Usage: |
| 6058 |
npm start [-- <args>] |
| 6059 |
|
| 6060 |
Options: |
| 6061 |
[--ignore-scripts] [--script-shell <script-shell>] |
| 6062 |
|
| 6063 |
--ignore-scripts |
| 6064 |
If true, npm does not run scripts specified in package.json files. |
| 6065 |
|
| 6066 |
--script-shell |
| 6067 |
The shell to use for scripts run with the \`npm exec\`, |
| 6068 |
|
| 6069 |
|
| 6070 |
Run "npm help start" for more info |
| 6071 |
|
| 6072 |
\`\`\`bash |
| 6073 |
npm start [-- <args>] |
| 6074 |
\`\`\` |
| 6075 |
|
| 6076 |
#### \`ignore-scripts\` |
| 6077 |
#### \`script-shell\` |
| 6078 |
` |
| 6079 |
|
| 6080 |
exports[`test/lib/docs.js TAP usage stop > must match snapshot 1`] = ` |
| 6081 |
Stop a package |
| 6082 |
|
| 6083 |
Usage: |
| 6084 |
npm stop [-- <args>] |
| 6085 |
|
| 6086 |
Options: |
| 6087 |
[--ignore-scripts] [--script-shell <script-shell>] |
| 6088 |
|
| 6089 |
--ignore-scripts |
| 6090 |
If true, npm does not run scripts specified in package.json files. |
| 6091 |
|
| 6092 |
--script-shell |
| 6093 |
The shell to use for scripts run with the \`npm exec\`, |
| 6094 |
|
| 6095 |
|
| 6096 |
Run "npm help stop" for more info |
| 6097 |
|
| 6098 |
\`\`\`bash |
| 6099 |
npm stop [-- <args>] |
| 6100 |
\`\`\` |
| 6101 |
|
| 6102 |
#### \`ignore-scripts\` |
| 6103 |
#### \`script-shell\` |
| 6104 |
` |
| 6105 |
|
| 6106 |
exports[`test/lib/docs.js TAP usage team > must match snapshot 1`] = ` |
| 6107 |
Manage organization teams and team memberships |
| 6108 |
|
| 6109 |
Usage: |
| 6110 |
npm team create <scope:team> [--otp <otpcode>] |
| 6111 |
npm team destroy <scope:team> [--otp <otpcode>] |
| 6112 |
npm team add <scope:team> <user> [--otp <otpcode>] |
| 6113 |
npm team rm <scope:team> <user> [--otp <otpcode>] |
| 6114 |
npm team ls <scope>|<scope:team> |
| 6115 |
|
| 6116 |
Options: |
| 6117 |
[--registry <registry>] [--otp <otp>] [-p|--parseable] [--json] |
| 6118 |
|
| 6119 |
--registry |
| 6120 |
The base URL of the npm registry. |
| 6121 |
|
| 6122 |
--otp |
| 6123 |
This is a one-time password from a two-factor authenticator. It's needed |
| 6124 |
|
| 6125 |
-p|--parseable |
| 6126 |
Output parseable results from commands that write to standard output. For |
| 6127 |
|
| 6128 |
--json |
| 6129 |
Whether or not to output JSON data, rather than the normal output. |
| 6130 |
|
| 6131 |
|
| 6132 |
Run "npm help team" for more info |
| 6133 |
|
| 6134 |
\`\`\`bash |
| 6135 |
npm team create <scope:team> [--otp <otpcode>] |
| 6136 |
npm team destroy <scope:team> [--otp <otpcode>] |
| 6137 |
npm team add <scope:team> <user> [--otp <otpcode>] |
| 6138 |
npm team rm <scope:team> <user> [--otp <otpcode>] |
| 6139 |
npm team ls <scope>|<scope:team> |
| 6140 |
\`\`\` |
| 6141 |
|
| 6142 |
Note: This command is unaware of workspaces. |
| 6143 |
|
| 6144 |
#### \`registry\` |
| 6145 |
#### \`otp\` |
| 6146 |
#### \`parseable\` |
| 6147 |
#### \`json\` |
| 6148 |
` |
| 6149 |
|
| 6150 |
exports[`test/lib/docs.js TAP usage test > must match snapshot 1`] = ` |
| 6151 |
Test a package |
| 6152 |
|
| 6153 |
Usage: |
| 6154 |
npm test [-- <args>] |
| 6155 |
|
| 6156 |
Options: |
| 6157 |
[--ignore-scripts] [--script-shell <script-shell>] |
| 6158 |
|
| 6159 |
--ignore-scripts |
| 6160 |
If true, npm does not run scripts specified in package.json files. |
| 6161 |
|
| 6162 |
--script-shell |
| 6163 |
The shell to use for scripts run with the \`npm exec\`, |
| 6164 |
|
| 6165 |
|
| 6166 |
aliases: tst, t |
| 6167 |
|
| 6168 |
Run "npm help test" for more info |
| 6169 |
|
| 6170 |
\`\`\`bash |
| 6171 |
npm test [-- <args>] |
| 6172 |
|
| 6173 |
aliases: tst, t |
| 6174 |
\`\`\` |
| 6175 |
|
| 6176 |
#### \`ignore-scripts\` |
| 6177 |
#### \`script-shell\` |
| 6178 |
` |
| 6179 |
|
| 6180 |
exports[`test/lib/docs.js TAP usage token > must match snapshot 1`] = ` |
| 6181 |
Manage your authentication tokens |
| 6182 |
|
| 6183 |
Usage: |
| 6184 |
npm token list |
| 6185 |
npm token revoke <id|token> |
| 6186 |
npm token create |
| 6187 |
|
| 6188 |
Options: |
| 6189 |
[--name <name>] [--token-description <token-description>] [--expires <expires>] |
| 6190 |
[--packages <packages> [--packages <packages> ...]] [--packages-all] |
| 6191 |
[--scopes <scopes> [--scopes <scopes> ...]] [--orgs <orgs> [--orgs <orgs> ...]] |
| 6192 |
[--packages-and-scopes-permission <read-only|read-write|no-access>] |
| 6193 |
[--orgs-permission <read-only|read-write|no-access>] |
| 6194 |
[--cidr <cidr> [--cidr <cidr> ...]] [--bypass-2fa] [--password <password>] |
| 6195 |
[--registry <registry>] [--otp <otp>] [--read-only] |
| 6196 |
|
| 6197 |
--name |
| 6198 |
When creating a Granular Access Token with \`npm token create\`, |
| 6199 |
|
| 6200 |
--token-description |
| 6201 |
Description text for the token when using \`npm token create\`. |
| 6202 |
|
| 6203 |
--expires |
| 6204 |
When creating a Granular Access Token with \`npm token create\`, |
| 6205 |
|
| 6206 |
--packages |
| 6207 |
When creating a Granular Access Token with \`npm token create\`, |
| 6208 |
|
| 6209 |
--packages-all |
| 6210 |
When creating a Granular Access Token with \`npm token create\`, |
| 6211 |
|
| 6212 |
--scopes |
| 6213 |
When creating a Granular Access Token with \`npm token create\`, |
| 6214 |
|
| 6215 |
--orgs |
| 6216 |
When creating a Granular Access Token with \`npm token create\`, |
| 6217 |
|
| 6218 |
--packages-and-scopes-permission |
| 6219 |
When creating a Granular Access Token with \`npm token create\`, |
| 6220 |
|
| 6221 |
--orgs-permission |
| 6222 |
When creating a Granular Access Token with \`npm token create\`, |
| 6223 |
|
| 6224 |
--cidr |
| 6225 |
This is a list of CIDR address to be used when configuring limited access |
| 6226 |
|
| 6227 |
--bypass-2fa |
| 6228 |
When creating a Granular Access Token with \`npm token create\`, |
| 6229 |
|
| 6230 |
--password |
| 6231 |
Password for authentication. Can be provided via command line when |
| 6232 |
|
| 6233 |
--registry |
| 6234 |
The base URL of the npm registry. |
| 6235 |
|
| 6236 |
--otp |
| 6237 |
This is a one-time password from a two-factor authenticator. It's needed |
| 6238 |
|
| 6239 |
--read-only |
| 6240 |
This is used to mark a token as unable to publish when configuring |
| 6241 |
|
| 6242 |
|
| 6243 |
Run "npm help token" for more info |
| 6244 |
|
| 6245 |
\`\`\`bash |
| 6246 |
npm token list |
| 6247 |
npm token revoke <id|token> |
| 6248 |
npm token create |
| 6249 |
\`\`\` |
| 6250 |
|
| 6251 |
Note: This command is unaware of workspaces. |
| 6252 |
|
| 6253 |
#### \`name\` |
| 6254 |
#### \`token-description\` |
| 6255 |
#### \`expires\` |
| 6256 |
#### \`packages\` |
| 6257 |
#### \`packages-all\` |
| 6258 |
#### \`scopes\` |
| 6259 |
#### \`orgs\` |
| 6260 |
#### \`packages-and-scopes-permission\` |
| 6261 |
#### \`orgs-permission\` |
| 6262 |
#### \`cidr\` |
| 6263 |
#### \`bypass-2fa\` |
| 6264 |
#### \`password\` |
| 6265 |
#### \`registry\` |
| 6266 |
#### \`otp\` |
| 6267 |
#### \`read-only\` |
| 6268 |
` |
| 6269 |
|
| 6270 |
exports[`test/lib/docs.js TAP usage trust > must match snapshot 1`] = ` |
| 6271 |
Create a trusted relationship between a package and a OIDC provider |
| 6272 |
|
| 6273 |
Usage: |
| 6274 |
npm trust github [package] --file [--repo|--repository] [--env|--environment] [--allow-publish] [--allow-stage-publish] [-y|--yes] |
| 6275 |
npm trust gitlab [package] --file [--project|--repo|--repository] [--env|--environment] [--allow-publish] [--allow-stage-publish] [-y|--yes] |
| 6276 |
npm trust circleci [package] --org-id <uuid> --project-id <uuid> --pipeline-definition-id <uuid> --vcs-origin <origin> [--context-id <uuid>...] [--allow-publish] [--allow-stage-publish] [-y|--yes] |
| 6277 |
npm trust list [package] |
| 6278 |
npm trust revoke [package] --id=<trust-id> |
| 6279 |
|
| 6280 |
Subcommands: |
| 6281 |
github |
| 6282 |
Create a trusted relationship between a package and GitHub Actions |
| 6283 |
|
| 6284 |
gitlab |
| 6285 |
Create a trusted relationship between a package and GitLab CI/CD |
| 6286 |
|
| 6287 |
circleci |
| 6288 |
Create a trusted relationship between a package and CircleCI |
| 6289 |
|
| 6290 |
list |
| 6291 |
List trusted relationships for a package |
| 6292 |
|
| 6293 |
revoke |
| 6294 |
Revoke a trusted relationship for a package |
| 6295 |
|
| 6296 |
Run "npm trust <subcommand> --help" for more info on a subcommand. |
| 6297 |
|
| 6298 |
Run "npm help trust" for more info |
| 6299 |
|
| 6300 |
Note: This command is unaware of workspaces. |
| 6301 |
|
| 6302 |
#### Synopsis |
| 6303 |
#### Flags |
| 6304 |
#### Synopsis |
| 6305 |
#### Flags |
| 6306 |
#### Synopsis |
| 6307 |
#### Flags |
| 6308 |
#### Synopsis |
| 6309 |
#### Flags |
| 6310 |
#### Synopsis |
| 6311 |
#### Flags |
| 6312 |
` |
| 6313 |
|
| 6314 |
exports[`test/lib/docs.js TAP usage undeprecate > must match snapshot 1`] = ` |
| 6315 |
Undeprecate a version of a package |
| 6316 |
|
| 6317 |
Usage: |
| 6318 |
npm undeprecate <package-spec> |
| 6319 |
|
| 6320 |
Options: |
| 6321 |
[--registry <registry>] [--otp <otp>] [--dry-run] |
| 6322 |
|
| 6323 |
--registry |
| 6324 |
The base URL of the npm registry. |
| 6325 |
|
| 6326 |
--otp |
| 6327 |
This is a one-time password from a two-factor authenticator. It's needed |
| 6328 |
|
| 6329 |
--dry-run |
| 6330 |
Indicates that you don't want npm to make any changes and that it should |
| 6331 |
|
| 6332 |
|
| 6333 |
Run "npm help undeprecate" for more info |
| 6334 |
|
| 6335 |
\`\`\`bash |
| 6336 |
npm undeprecate <package-spec> |
| 6337 |
\`\`\` |
| 6338 |
|
| 6339 |
Note: This command is unaware of workspaces. |
| 6340 |
|
| 6341 |
#### \`registry\` |
| 6342 |
#### \`otp\` |
| 6343 |
#### \`dry-run\` |
| 6344 |
` |
| 6345 |
|
| 6346 |
exports[`test/lib/docs.js TAP usage uninstall > must match snapshot 1`] = ` |
| 6347 |
Remove a package |
| 6348 |
|
| 6349 |
Usage: |
| 6350 |
npm uninstall [<@scope>/]<pkg>... |
| 6351 |
|
| 6352 |
Options: |
| 6353 |
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle] |
| 6354 |
[-g|--global] |
| 6355 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 6356 |
[--workspaces] [--include-workspace-root] [--install-links] |
| 6357 |
|
| 6358 |
-S|--save |
| 6359 |
Save installed packages to a \`package.json\` file as dependencies. |
| 6360 |
|
| 6361 |
-g|--global |
| 6362 |
Operates in "global" mode, so that packages are installed into the |
| 6363 |
|
| 6364 |
-w|--workspace |
| 6365 |
Enable running a command in the context of the configured workspaces of the |
| 6366 |
|
| 6367 |
--workspaces |
| 6368 |
Set to true to run the command in the context of **all** configured |
| 6369 |
|
| 6370 |
--include-workspace-root |
| 6371 |
Include the workspace root when workspaces are enabled for a command. |
| 6372 |
|
| 6373 |
--install-links |
| 6374 |
When set file: protocol dependencies will be packed and installed as |
| 6375 |
|
| 6376 |
|
| 6377 |
aliases: unlink, remove, rm, r, un |
| 6378 |
|
| 6379 |
Run "npm help uninstall" for more info |
| 6380 |
|
| 6381 |
\`\`\`bash |
| 6382 |
npm uninstall [<@scope>/]<pkg>... |
| 6383 |
|
| 6384 |
aliases: unlink, remove, rm, r, un |
| 6385 |
\`\`\` |
| 6386 |
|
| 6387 |
#### \`save\` |
| 6388 |
#### \`global\` |
| 6389 |
#### \`workspace\` |
| 6390 |
#### \`workspaces\` |
| 6391 |
#### \`include-workspace-root\` |
| 6392 |
#### \`install-links\` |
| 6393 |
` |
| 6394 |
|
| 6395 |
exports[`test/lib/docs.js TAP usage unpublish > must match snapshot 1`] = ` |
| 6396 |
Remove a package from the registry |
| 6397 |
|
| 6398 |
Usage: |
| 6399 |
npm unpublish [<package-spec>] |
| 6400 |
|
| 6401 |
Options: |
| 6402 |
[--dry-run] [-f|--force] |
| 6403 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 6404 |
[--workspaces] |
| 6405 |
|
| 6406 |
--dry-run |
| 6407 |
Indicates that you don't want npm to make any changes and that it should |
| 6408 |
|
| 6409 |
-f|--force |
| 6410 |
Removes various protections against unfortunate side effects, common |
| 6411 |
|
| 6412 |
-w|--workspace |
| 6413 |
Enable running a command in the context of the configured workspaces of the |
| 6414 |
|
| 6415 |
--workspaces |
| 6416 |
Set to true to run the command in the context of **all** configured |
| 6417 |
|
| 6418 |
|
| 6419 |
Run "npm help unpublish" for more info |
| 6420 |
|
| 6421 |
\`\`\`bash |
| 6422 |
npm unpublish [<package-spec>] |
| 6423 |
\`\`\` |
| 6424 |
|
| 6425 |
#### \`dry-run\` |
| 6426 |
#### \`force\` |
| 6427 |
#### \`workspace\` |
| 6428 |
#### \`workspaces\` |
| 6429 |
` |
| 6430 |
|
| 6431 |
exports[`test/lib/docs.js TAP usage unstar > must match snapshot 1`] = ` |
| 6432 |
Remove an item from your favorite packages |
| 6433 |
|
| 6434 |
Usage: |
| 6435 |
npm unstar [<package-spec>...] |
| 6436 |
|
| 6437 |
Options: |
| 6438 |
[--registry <registry>] [--unicode] [--otp <otp>] |
| 6439 |
|
| 6440 |
--registry |
| 6441 |
The base URL of the npm registry. |
| 6442 |
|
| 6443 |
--unicode |
| 6444 |
When set to true, npm uses unicode characters in the tree output. When |
| 6445 |
|
| 6446 |
--otp |
| 6447 |
This is a one-time password from a two-factor authenticator. It's needed |
| 6448 |
|
| 6449 |
|
| 6450 |
Run "npm help unstar" for more info |
| 6451 |
|
| 6452 |
\`\`\`bash |
| 6453 |
npm unstar [<package-spec>...] |
| 6454 |
\`\`\` |
| 6455 |
|
| 6456 |
Note: This command is unaware of workspaces. |
| 6457 |
|
| 6458 |
#### \`registry\` |
| 6459 |
#### \`unicode\` |
| 6460 |
#### \`otp\` |
| 6461 |
` |
| 6462 |
|
| 6463 |
exports[`test/lib/docs.js TAP usage update > must match snapshot 1`] = ` |
| 6464 |
Update packages |
| 6465 |
|
| 6466 |
Usage: |
| 6467 |
npm update [<pkg>...] |
| 6468 |
|
| 6469 |
Options: |
| 6470 |
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle] |
| 6471 |
[-g|--global] [--install-strategy <hoisted|nested|shallow|linked>] |
| 6472 |
[--legacy-bundling] [--global-style] |
| 6473 |
[--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]] |
| 6474 |
[--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]] |
| 6475 |
[--strict-peer-deps] [--no-package-lock] [--foreground-scripts] |
| 6476 |
[--ignore-scripts] |
| 6477 |
[--allow-scripts <package-list> [--allow-scripts <package-list> ...]] |
| 6478 |
[--strict-allow-scripts] [--dangerously-allow-all-scripts] [--no-audit] |
| 6479 |
[--before <date>] [--min-release-age <days>] [--no-bin-links] [--no-fund] |
| 6480 |
[--dry-run] |
| 6481 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 6482 |
[--workspaces] [--include-workspace-root] [--install-links] |
| 6483 |
|
| 6484 |
-S|--save |
| 6485 |
Save installed packages to a \`package.json\` file as dependencies. |
| 6486 |
|
| 6487 |
-g|--global |
| 6488 |
Operates in "global" mode, so that packages are installed into the |
| 6489 |
|
| 6490 |
--install-strategy |
| 6491 |
Sets the strategy for installing packages in node_modules. |
| 6492 |
|
| 6493 |
--legacy-bundling |
| 6494 |
Instead of hoisting package installs in \`node_modules\`, install packages |
| 6495 |
|
| 6496 |
--global-style |
| 6497 |
Only install direct dependencies in the top level \`node_modules\`, |
| 6498 |
|
| 6499 |
--omit |
| 6500 |
Dependency types to omit from the installation tree on disk. |
| 6501 |
|
| 6502 |
--include |
| 6503 |
Option that allows for defining which types of dependencies to install. |
| 6504 |
|
| 6505 |
--strict-peer-deps |
| 6506 |
If set to \`true\`, and \`--legacy-peer-deps\` is not set, then _any_ |
| 6507 |
|
| 6508 |
--package-lock |
| 6509 |
If set to false, then ignore \`package-lock.json\` files when installing. |
| 6510 |
|
| 6511 |
--foreground-scripts |
| 6512 |
Run all build scripts (ie, \`preinstall\`, \`install\`, and |
| 6513 |
|
| 6514 |
--ignore-scripts |
| 6515 |
If true, npm does not run scripts specified in package.json files. |
| 6516 |
|
| 6517 |
--allow-scripts |
| 6518 |
Comma-separated list of packages whose install-time lifecycle scripts |
| 6519 |
|
| 6520 |
--strict-allow-scripts |
| 6521 |
If \`true\`, turn the install-script policy from a warning into a hard |
| 6522 |
|
| 6523 |
--dangerously-allow-all-scripts |
| 6524 |
If \`true\`, bypass the \`allowScripts\` policy entirely and run every |
| 6525 |
|
| 6526 |
--audit |
| 6527 |
When "true" submit audit reports alongside the current npm command to the |
| 6528 |
|
| 6529 |
--before |
| 6530 |
If passed to \`npm install\`, will rebuild the npm tree such that only |
| 6531 |
|
| 6532 |
--min-release-age |
| 6533 |
If set, npm will build the npm tree such that only versions that were |
| 6534 |
|
| 6535 |
--bin-links |
| 6536 |
Tells npm to create symlinks (or \`.cmd\` shims on Windows) for package |
| 6537 |
|
| 6538 |
--fund |
| 6539 |
When "true" displays the message at the end of each \`npm install\` |
| 6540 |
|
| 6541 |
--dry-run |
| 6542 |
Indicates that you don't want npm to make any changes and that it should |
| 6543 |
|
| 6544 |
-w|--workspace |
| 6545 |
Enable running a command in the context of the configured workspaces of the |
| 6546 |
|
| 6547 |
--workspaces |
| 6548 |
Set to true to run the command in the context of **all** configured |
| 6549 |
|
| 6550 |
--include-workspace-root |
| 6551 |
Include the workspace root when workspaces are enabled for a command. |
| 6552 |
|
| 6553 |
--install-links |
| 6554 |
When set file: protocol dependencies will be packed and installed as |
| 6555 |
|
| 6556 |
|
| 6557 |
aliases: u, up, upgrade, udpate |
| 6558 |
|
| 6559 |
Run "npm help update" for more info |
| 6560 |
|
| 6561 |
\`\`\`bash |
| 6562 |
npm update [<pkg>...] |
| 6563 |
|
| 6564 |
aliases: u, up, upgrade, udpate |
| 6565 |
\`\`\` |
| 6566 |
|
| 6567 |
#### \`save\` |
| 6568 |
#### \`global\` |
| 6569 |
#### \`install-strategy\` |
| 6570 |
#### \`legacy-bundling\` |
| 6571 |
#### \`global-style\` |
| 6572 |
#### \`omit\` |
| 6573 |
#### \`include\` |
| 6574 |
#### \`strict-peer-deps\` |
| 6575 |
#### \`package-lock\` |
| 6576 |
#### \`foreground-scripts\` |
| 6577 |
#### \`ignore-scripts\` |
| 6578 |
#### \`allow-scripts\` |
| 6579 |
#### \`strict-allow-scripts\` |
| 6580 |
#### \`dangerously-allow-all-scripts\` |
| 6581 |
#### \`audit\` |
| 6582 |
#### \`before\` |
| 6583 |
#### \`min-release-age\` |
| 6584 |
#### \`bin-links\` |
| 6585 |
#### \`fund\` |
| 6586 |
#### \`dry-run\` |
| 6587 |
#### \`workspace\` |
| 6588 |
#### \`workspaces\` |
| 6589 |
#### \`include-workspace-root\` |
| 6590 |
#### \`install-links\` |
| 6591 |
` |
| 6592 |
|
| 6593 |
exports[`test/lib/docs.js TAP usage version > must match snapshot 1`] = ` |
| 6594 |
Bump a package version |
| 6595 |
|
| 6596 |
Usage: |
| 6597 |
npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git] |
| 6598 |
|
| 6599 |
Options: |
| 6600 |
[--allow-same-version] [--no-commit-hooks] [--no-git-tag-version] [--json] |
| 6601 |
[--preid prerelease-id] [--sign-git-tag] |
| 6602 |
[-S|--save|--no-save|--save-prod|--save-dev|--save-optional|--save-peer|--save-bundle] |
| 6603 |
[-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 6604 |
[--workspaces] [--no-workspaces-update] [--include-workspace-root] |
| 6605 |
[--ignore-scripts] |
| 6606 |
|
| 6607 |
--allow-same-version |
| 6608 |
Prevents throwing an error when \`npm version\` is used to set the new |
| 6609 |
|
| 6610 |
--commit-hooks |
| 6611 |
Run git commit hooks when using the \`npm version\` command. |
| 6612 |
|
| 6613 |
--git-tag-version |
| 6614 |
Tag the commit when using the \`npm version\` command. Setting this to |
| 6615 |
|
| 6616 |
--json |
| 6617 |
Whether or not to output JSON data, rather than the normal output. |
| 6618 |
|
| 6619 |
--preid |
| 6620 |
The "prerelease identifier" to use as a prefix for the "prerelease" part |
| 6621 |
|
| 6622 |
--sign-git-tag |
| 6623 |
If set to true, then the \`npm version\` command will tag the version |
| 6624 |
|
| 6625 |
-S|--save |
| 6626 |
Save installed packages to a \`package.json\` file as dependencies. |
| 6627 |
|
| 6628 |
-w|--workspace |
| 6629 |
Enable running a command in the context of the configured workspaces of the |
| 6630 |
|
| 6631 |
--workspaces |
| 6632 |
Set to true to run the command in the context of **all** configured |
| 6633 |
|
| 6634 |
--workspaces-update |
| 6635 |
If set to true, the npm cli will run an update after operations that may |
| 6636 |
|
| 6637 |
--include-workspace-root |
| 6638 |
Include the workspace root when workspaces are enabled for a command. |
| 6639 |
|
| 6640 |
--ignore-scripts |
| 6641 |
If true, npm does not run scripts specified in package.json files. |
| 6642 |
|
| 6643 |
|
| 6644 |
alias: verison |
| 6645 |
|
| 6646 |
Run "npm help version" for more info |
| 6647 |
|
| 6648 |
\`\`\`bash |
| 6649 |
npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | from-git] |
| 6650 |
|
| 6651 |
alias: verison |
| 6652 |
\`\`\` |
| 6653 |
|
| 6654 |
#### \`allow-same-version\` |
| 6655 |
#### \`commit-hooks\` |
| 6656 |
#### \`git-tag-version\` |
| 6657 |
#### \`json\` |
| 6658 |
#### \`preid\` |
| 6659 |
#### \`sign-git-tag\` |
| 6660 |
#### \`save\` |
| 6661 |
#### \`workspace\` |
| 6662 |
#### \`workspaces\` |
| 6663 |
#### \`workspaces-update\` |
| 6664 |
#### \`include-workspace-root\` |
| 6665 |
#### \`ignore-scripts\` |
| 6666 |
` |
| 6667 |
|
| 6668 |
exports[`test/lib/docs.js TAP usage view > must match snapshot 1`] = ` |
| 6669 |
View registry info |
| 6670 |
|
| 6671 |
Usage: |
| 6672 |
npm view [<package-spec>] [<field>[.subfield]...] |
| 6673 |
|
| 6674 |
Options: |
| 6675 |
[--json] [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
| 6676 |
[--workspaces] [--include-workspace-root] |
| 6677 |
|
| 6678 |
--json |
| 6679 |
Whether or not to output JSON data, rather than the normal output. |
| 6680 |
|
| 6681 |
-w|--workspace |
| 6682 |
Enable running a command in the context of the configured workspaces of the |
| 6683 |
|
| 6684 |
--workspaces |
| 6685 |
Set to true to run the command in the context of **all** configured |
| 6686 |
|
| 6687 |
--include-workspace-root |
| 6688 |
Include the workspace root when workspaces are enabled for a command. |
| 6689 |
|
| 6690 |
|
| 6691 |
aliases: info, show, v |
| 6692 |
|
| 6693 |
Run "npm help view" for more info |
| 6694 |
|
| 6695 |
\`\`\`bash |
| 6696 |
npm view [<package-spec>] [<field>[.subfield]...] |
| 6697 |
|
| 6698 |
aliases: info, show, v |
| 6699 |
\`\`\` |
| 6700 |
|
| 6701 |
#### \`json\` |
| 6702 |
#### \`workspace\` |
| 6703 |
#### \`workspaces\` |
| 6704 |
#### \`include-workspace-root\` |
| 6705 |
` |
| 6706 |
|
| 6707 |
exports[`test/lib/docs.js TAP usage whoami > must match snapshot 1`] = ` |
| 6708 |
Display npm username |
| 6709 |
|
| 6710 |
Usage: |
| 6711 |
npm whoami |
| 6712 |
|
| 6713 |
Options: |
| 6714 |
[--registry <registry>] |
| 6715 |
|
| 6716 |
--registry |
| 6717 |
The base URL of the npm registry. |
| 6718 |
|
| 6719 |
|
| 6720 |
Run "npm help whoami" for more info |
| 6721 |
|
| 6722 |
\`\`\`bash |
| 6723 |
npm whoami |
| 6724 |
\`\`\` |
| 6725 |
|
| 6726 |
Note: This command is unaware of workspaces. |
| 6727 |
|
| 6728 |
#### \`registry\` |
| 6729 |
` |