versioned_docs_archived/version-8.x/completion.md
Unlike other popular package managers, which usually require plugins, pnpm supports command line tab-completion for Bash, Zsh, Fish, and similar shells.
To setup autocompletion, run:
pnpm install-completion
The CLI will ask for which shell to generate the autocompletion script. Alternatively, the target shell may be specified in the command line:
pnpm install-completion zsh
To see examples of completion, read this article.
You can get IDE-style autocompletions for pnpm with Fig. It works in Bash, Zsh, and Fish.
To install, run:
brew install fig
pnpm-shell-completion is a shell plugin maintained by Pig Fang on Github.
Features:
pnpm --filter <package>.pnpm remove command, even in workspace's packages (by specifying --filter option).package.json.