ni
Use the right package manager (npm, yarn, pnpm, bun, or deno) automatically. tldr-pages
On Windows
Several platforms
Use the right package manager (npm, yarn, pnpm, bun, or deno) automatically. Detect the current project's lockfile to run the corresponding commands. Note: In PowerShell, ni is a built-in alias for New-Item. To use this tool, the alias must be removed.
Install all dependencies (equivalent to npm install, yarn install, etc.)
niIdentifyInstall a specific package (-D for dev dependencies)
ni packageIdentifyRun a package.json script (interactively select if no script is provided)
nr scriptDownload and execute a command from a package (equivalent to npx, pnpm dlx, etc.)
nlx packageUpgrade dependencies
nupUninstall a package
nun packageClean install dependencies (equivalent to npm ci, etc.)
nciUse the current package manager agent directly for arbitrary commands
na commandWindows
In PowerShell, this command is an alias of New-Item.