diff --git a/.changeset/lucky-coats-sin.md b/.changeset/lucky-coats-sin.md new file mode 100644 index 0000000000..78d57ebd2f --- /dev/null +++ b/.changeset/lucky-coats-sin.md @@ -0,0 +1,5 @@ +--- +"@pnpm/plugin-commands-config": patch +--- + +Add `--json` option in `pnpm config --help` command diff --git a/config/plugin-commands-config/src/config.ts b/config/plugin-commands-config/src/config.ts index baded256c4..b312cadd49 100644 --- a/config/plugin-commands-config/src/config.ts +++ b/config/plugin-commands-config/src/config.ts @@ -57,6 +57,10 @@ export function help () { description: 'When set to "project", the .npmrc file at the nearest package.json will be used', name: '--location ', }, + { + description: 'Show all the config settings in JSON format', + name: '--json', + }, ], }, ], @@ -66,6 +70,7 @@ export function help () { 'pnpm config get ', 'pnpm config delete ', 'pnpm config list', + 'pnpm config list --json', ], }) }