From 5c7ee66fd51a6cbf6a09caae0804902c8665bd0f Mon Sep 17 00:00:00 2001 From: Trevor Burnham Date: Sun, 25 Jan 2026 19:30:08 -0500 Subject: [PATCH] fix(completion): correct documentation URL in help output (#10511) The completion command's help text was showing a URL that redirects to a 404 page (https://pnpm.io/10.x/cli/completion\). This changes it to the correct URL (https://pnpm.io/completion\) where the documentation actually exists. close #10281 --- .changeset/fix-completion-help-url.md | 6 ++++++ .../plugin-commands-completion/src/generateCompletion.ts | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/fix-completion-help-url.md diff --git a/.changeset/fix-completion-help-url.md b/.changeset/fix-completion-help-url.md new file mode 100644 index 0000000000..dc36cf4e0f --- /dev/null +++ b/.changeset/fix-completion-help-url.md @@ -0,0 +1,6 @@ +--- +"@pnpm/plugin-commands-completion": patch +"pnpm": patch +--- + +Fixed the documentation URL shown in `pnpm completion --help` to point to the correct page at https://pnpm.io/completion [#10281](https://github.com/pnpm/pnpm/issues/10281). diff --git a/completion/plugin-commands-completion/src/generateCompletion.ts b/completion/plugin-commands-completion/src/generateCompletion.ts index 2479a4fd04..04f6af4815 100644 --- a/completion/plugin-commands-completion/src/generateCompletion.ts +++ b/completion/plugin-commands-completion/src/generateCompletion.ts @@ -1,5 +1,4 @@ import renderHelp from 'render-help' -import { docsUrl } from '@pnpm/cli-utils' import { getCompletionScript, SUPPORTED_SHELLS } from '@pnpm/tabtab' import { getShellFromParams } from './getShell.js' @@ -14,7 +13,7 @@ export const cliOptionsTypes = (): Record => ({}) export function help (): string { return renderHelp({ description: 'Print shell completion code to stdout', - url: docsUrl('completion'), + url: 'https://pnpm.io/completion', usages: SUPPORTED_SHELLS.map(shell => `pnpm completion ${shell}`), }) }