Skip to main content
Version: 5.x

Complétion de la ligne de commande

Ajouté dans la version v4.9.0

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 (since v5.15.0):

pnpm install-completion zsh

To see examples of completion, read this article.