README.md

February 5, 2026 ยท View on GitHub

pnpm.plugin.zsh pnpm.plugin.zsh

Plugin for aliases and completions for pnpm package manager.

Installation

oh-my-zsh

git clone https://github.com/baliestridev/pnpm.plugin.zsh.git $ZSH_CUSTOM/plugins/pnpm
~/.zshrc
plugins=(... pnpm)

zinit

zinit light baliestridev/pnpm.plugin.zsh

zi

zi light baliestridev/pnpm.plugin.zsh

zgenom

zgenom load baliestridev/pnpm.plugin.zsh

zplug

zplug baliestridev/pnpm.plugin.zsh

Settings

Use plugin-defined completions or pnpm's built-in completions

zstyle ":baliestridev:pnpm:completion" legacy-completion yes

Add this line to your ~/.zshrc file to use the plugin-defined completions. If you prefer to use pnpm's built-in completions, remove this line.

Aliases

AliasCommandDescription
pnpnpmThe pnpm command
pnxpnpm dlxFetch a package, load it and run command
pnapnpm addInstall a package in dependencies (package.json)
pnadpnpm add --save-devInstall a package in devDependencies (package.json)
pnappnpm add --save-peerInstall a package in peerDependencies (package.json)
pnbpnpm run buildRun the build script defined in package.json
pndpnpm run devRun the dev script defined in package.json
pngapnpm add --globalInstall packages globally on your operating system
pnglspnpm list --globalLists global installed packages
pngrmpnpm remove --globalRemove global installed packages from your OS
pngupnpm update --globalUpgrade packages installed globally to their latest version
pnhpnpm helpShow help for a pnpm command
pnaupnpm auditChecks for known security issues with the installed packages
pnwhypnpm whyShows the packages that depend on given package
pnipnpm initInteractively creates or updates a package.json file
pninpnpm installInstall dependencies defined in package.json
pnunpnpm uninstallUninstall dependencies defined in package.json
pnlnpnpm run lintRun the lint script defined in package.json
pndocpnpm run docRun the doc script defined in package.json
pnlspnpm listList installed packages
pnoutpnpm outdatedCheck for outdated package dependencies
pnrmpnpm removeRemove installed packages
pnrunpnpm runRun a defined package script
pnspnpm run serveStart the dev server
pnstpnpm startRun the start script defined in package.json
pntpnpm testRun the test script defined in package.json
pntcpnpm test --coverageRun the test script defined in package.json with coverage
pnuipnpm update --interactivePrompt for which outdated packages to upgrade
pnuilpnpm update --interactive --latestPrompt for which outdated packages to upgrade to the latest available version
pnuppnpm updateUpgrade packages to their latest version
pnsvpnpm serverManage a pnpm store server
pnpubpnpm publishPublishes a package to the registry
pnsetpnpm setupSets up pnpm

License

This project is licensed under the MIT License - see the LICENSE file for details.