Skip to content

docs: add loglevel to install and update command documentation#8811

Closed
MaxBlack-dev wants to merge 1 commit into
npm:latestfrom
MaxBlack-dev:docs/4690-add-loglevel-to-install-update
Closed

docs: add loglevel to install and update command documentation#8811
MaxBlack-dev wants to merge 1 commit into
npm:latestfrom
MaxBlack-dev:docs/4690-add-loglevel-to-install-update

Conversation

@MaxBlack-dev

Copy link
Copy Markdown
Contributor

Description

This PR adds the loglevel configuration option to the documentation for
pm install and
pm update commands.

Changes

  • Added loglevel to the params array in lib/commands/install.js
  • Added loglevel to the params array in lib/commands/update.js

This makes the loglevel option visible in the generated documentation for both commands, allowing users to easily discover that they can use --loglevel=verbose or --loglevel=silly to see more detailed output during package installation and updates.

Fixes

Closes #4690

Context

As discussed in #4690, users often don't realize that --loglevel can be used with
pm install and
pm update to get more verbose output. While loglevel is a global option available for all commands, it's particularly useful for these two frequently-used commands where users want to see detailed progress information.

The maintainer @lukekarrys suggested this could be added to make it more discoverable, even though it's a global option, since these are very commonly used commands where verbose output is frequently desired.

@MaxBlack-dev MaxBlack-dev requested a review from a team as a code owner December 3, 2025 02:00
Adds loglevel to the params array for install, update, and ci commands to make this option more discoverable in the help documentation.
@MaxBlack-dev MaxBlack-dev force-pushed the docs/4690-add-loglevel-to-install-update branch from e0a15a2 to abc868a Compare December 3, 2025 05:46
@MaxBlack-dev

Copy link
Copy Markdown
Contributor Author

Closing this PR as the tests are not passing. Will investigate the issue further before resubmitting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature request] add loglevel to the commands of install and update and to the relevant documentation pages

1 participant