diff --git a/.changeset/flat-peaches-lick.md b/.changeset/flat-peaches-lick.md new file mode 100644 index 0000000000..e148680371 --- /dev/null +++ b/.changeset/flat-peaches-lick.md @@ -0,0 +1,5 @@ +--- +"@pnpm/cache.commands": patch +--- + +Add help to the cache command. diff --git a/cache/commands/src/cache.cmd.ts b/cache/commands/src/cache.cmd.ts index ef7ef77203..19096058c3 100644 --- a/cache/commands/src/cache.cmd.ts +++ b/cache/commands/src/cache.cmd.ts @@ -27,8 +27,31 @@ export const commandNames = ['cache'] export function help (): string { return renderHelp({ - description: '', - descriptionLists: [], + description: 'Inspect and manage the metadata cache', + descriptionLists: [ + { + title: 'Commands', + + list: [ + { + description: 'Lists the available packages metadata cache. Supports filtering by glob', + name: 'list', + }, + { + description: 'Lists all registries that have their metadata cache locally', + name: 'list-registries', + }, + { + description: "Views information from the specified package's cache", + name: 'view', + }, + { + description: 'Deletes metadata cache for the specified package(s). Supports patterns', + name: 'delete', + }, + ], + }, + ], url: docsUrl('cache'), usages: ['pnpm cache '], })