Quick Start

Get started with pnpm-catalog-updates in minutes. This guide will walk you through installation, initialization, and your first dependency update.

Installation

Choose your preferred installation method:

npm install -g pcu
# or
npm install -g pcu

Initialize Your Workspace

If you don't have a pnpm workspace yet, PCU can create one for you:

pcu init

This command creates:

  • .pcurc.json - PCU configuration file
  • package.json - Workspace root package.json (if missing)
  • pnpm-workspace.yaml - PNPM workspace configuration (if missing)
  • packages/ - Directory for workspace packages (if missing)

Your First Update Check

Check for outdated catalog dependencies:

pcu -c

This will show you a beautiful table with:

  • Current versions in your catalogs
  • Latest available versions
  • Package names and update types
  • Color-coded urgency indicators

Interactive Updates

Update dependencies with an interactive interface:

pcu -i

This lets you:

  • ✅ Choose which dependencies to update
  • 🎯 Select specific versions
  • 📊 See impact analysis
  • 🔒 Create backups automatically

Common Commands

Here are the most frequently used commands:

CommandDescriptionExample
pcu initInitialize workspacepcu init --verbose
pcu -cCheck for updatespcu -c --catalog default
pcu -iInteractive updatespcu -i -b
pcu -uUpdate dependenciespcu -u --target minor
pcu -aAnalyze impactpcu -a default react

What's Next?

Resources

Configuration

Learn about PCU configuration options and how to customize your setup for different workflows.

Examples

Explore practical examples and common use cases for managing dependencies with PCU.

Troubleshooting

Common issues and solutions when using PCU. Error messages, debugging tips, and troubleshooting guides.

Development

Learn about development workflows, contributing guidelines, and advanced PCU usage patterns.

Getting Started Checklist

Follow this checklist to get PCU running in your project:

  1. Install PCU - Choose global installation or use npx
  2. Initialize workspace - Run pcu init for first-time setup
  3. Check for updates - Use pcu -c to see available updates
  4. Configure settings - Customize .pcurc.json for your needs
  5. Update dependencies - Use interactive mode pcu -i for safe updates
  6. Set up automation - Consider CI/CD integration for regular checks

Essential Commands Quick Reference

CommandPurposeWhen to Use
pcu initSetup workspaceFirst time setup, new projects
pcu -cCheck updatesDaily development, CI checks
pcu -iInteractive updateSafe manual updates
pcu -uBatch updateAutomated updates, CI/CD
pcu securitySecurity scanBefore releases, regular audits

Next Steps

Once you have PCU set up, explore these advanced features:

Was this page helpful?