pnpm-upgrade-interactive
v1.3.9
Published
Interactive CLI tool for upgrading pnpm dependencies with ease. Inspired by yarn upgrade-interactive. Supports monorepos, workspaces, and batch upgrades.
Maintainers
Readme
pnpm-upgrade-interactive
⚠️ DEPRECATED ⚠️
This package is no longer maintained.
Please use the new actively developed successor: inup
It supports pnpm, npm, yarn, and bun with the same interactive upgrade experience (and more).
A powerful interactive CLI tool for upgrading pnpm dependencies with ease. Inspired by yarn upgrade-interactive, this tool makes dependency management a breeze for pnpm projects. Perfect for monorepos, workspaces, and batch upgrades ❤️

What it does
Ever found yourself staring at a wall of outdated packages, wondering which ones to upgrade? This tool helps you:
- Scans your entire project - finds all package.json files in your workspace
- Checks for updates - compares your current versions against the latest available
- Lets you pick what to upgrade - interactive interface to select exactly what you want
- Does the heavy lifting - updates your package.json files and runs pnpm install for you
Why choose pnpm-upgrade-interactive?
If you're using pnpm and miss the convenience of yarn upgrade-interactive, this tool is perfect for you!
- 🚀 Fast & Efficient - Batch upgrade multiple packages at once
- 🔒 Safe Updates - Choose between minor updates or major version jumps
- 🏢 Monorepo Friendly - Works seamlessly with workspaces
- 📦 Registry Aware - Checks npm registry for latest versions
- 🎯 Selective Upgrades - Pick exactly which packages to upgrade
- ⚡ Zero Config - Works out of the box with sensible defaults
Installation
With npx (no installation needed)
npx pnpm-upgrade-interactiveInstall globally with pnpm
pnpm add -g pnpm-upgrade-interactiveAlternative: npm
npm install -g pnpm-upgrade-interactiveUsage
Just run it in your project directory:
pnpm-upgrade-interactiveThe tool will scan your entire workspace (including monorepos), find outdated packages, and let you choose which ones to upgrade interactively.
Command line options
-d, --dir <directory>: Run in a specific directory (default: current directory)-e, --exclude <patterns>: Skip directories matching these regex patterns (comma-separated)-p, --peer: Include peer dependencies in upgrade process (default: false)-o, --optional: Include optional dependencies in upgrade process (default: false)
Note: By default, the tool only processes dependencies and devDependencies. Both peerDependencies and optionalDependencies are excluded by default and must be explicitly included with their respective flags.
Examples:
# Basic usage - scans only dependencies and devDependencies
pnpm-upgrade-interactive
# Include peer dependencies in the upgrade process
pnpm-upgrade-interactive --peer
# Include optional dependencies
pnpm-upgrade-interactive --optional
# Include both peer and optional dependencies
pnpm-upgrade-interactive --peer --optional
# Skip example and test directories
pnpm-upgrade-interactive --exclude "example,test"
# Skip specific paths with regex
pnpm-upgrade-interactive -e "example/.*,.*\.test\..*"
# Run in a different directory
pnpm-upgrade-interactive --dir ../my-other-project
# Combine multiple options
pnpm-upgrade-interactive --dir ./packages --peer --exclude "test,dist"How it works
- Scans your project - Finds all package.json files recursively (respects exclude patterns)
- Collects dependencies - Gathers dependencies based on your options (dependencies, devDependencies, and optionally peerDependencies/optionalDependencies)
- Checks for updates - Queries npm registry for latest versions
- Shows you options - Interactive UI lets you pick what to upgrade (minor updates or latest versions)
- Updates safely - Modifies package.json files and runs
pnpm installto update lockfile
License
MIT
