VisCommandsvis update

vis update

Update packages to their latest versions with catalog support

vis update

Update packages to their latest versions. Automatically uses catalog mode for pnpm/bun workspaces with catalogs, or wraps the native package manager otherwise.

Alias: vis up

Usage

vis update [packages] [options]

Examples

vis update react                    # Update react within semver range
vis up react -L                     # Update react to latest
vis update -i                       # Interactive mode
vis update --filter app             # Update in specific workspace
vis update -r                       # Update in all workspaces
vis update --target minor           # Only apply minor/patch updates (catalog)
vis update --dry-run                # Preview changes without applying
vis update --exclude '@types/*'     # Exclude packages by pattern
vis update --changelog              # Show changelog links after updating
vis update --rollback               # Restore catalog from last backup

Options

OptionAliasDefaultDescription
--latest-LfalseUpdate to latest version (ignore semver range)
--target-tlatestUpdate target: latest, minor, or patch (catalog)
--dry-run-dfalsePreview changes without applying
--global-gfalseUpdate global packages
--recursive-rfalseUpdate recursively in all workspace packages
--filterFilter packages in monorepo
--workspace-root-wfalseInclude workspace root
--dev-DfalseUpdate only devDependencies
--prod-PfalseUpdate only dependencies
--interactive-ifalseInteractive mode
--no-optionalfalseDon't update optionalDependencies
--no-savefalseUpdate lockfile only
--includeGlob pattern to include packages (repeatable, catalog)
--excludeGlob pattern to exclude packages (repeatable, catalog)
--prereleasefalseInclude prerelease versions (catalog)
--securityfalseCheck for known security vulnerabilities (OSV.dev)
--no-catalogfalseSkip catalog mode, use package manager directly
--formattableOutput format: table, json, or minimal
--changelogfalseShow changelog URLs for updated packages
--installtrueRun install after catalog update (--no-install to skip)
--rollbackfalseRestore catalog file from the last backup

Catalog Mode vs Package Manager Mode

Catalog Mode (pnpm/bun)

When catalogs are detected in pnpm-workspace.yaml or package.json, vis directly updates the catalog entries. This mode:

  • Reads catalog definitions from the workspace config
  • Checks the npm registry for newer versions
  • Updates the catalog file in place
  • Creates a backup before modifying
  • Optionally runs pnpm install or bun install after updating

Package Manager Mode

When catalogs are not available (or --no-catalog is used), vis wraps the native package manager's update command. Supported package managers:

  • pnpm — Full feature support
  • npm — Basic support
  • yarn v1 — Limited support
  • yarn berry — Full support
  • bun — Partial support

Backup and Rollback

Every catalog update automatically creates a backup. To restore:

vis update --rollback

The backup is stored alongside the catalog file (e.g., pnpm-workspace.yaml.backup).

Support

Contribute to our work and keep us going

Community is the heart of open source. The success of our packages wouldn't be possible without the incredible contributions of users, testers, and developers who collaborate with us every day.Want to get involved? Here are some tips on how you can make a meaningful impact on our open source projects.

Ready to help us out?

Be sure to check out the package's contribution guidelines first. They'll walk you through the process on how to properly submit an issue or pull request to our repositories.

Submit a pull request

Found something to improve? Fork the repo, make your changes, and open a PR. We review every contribution and provide feedback to help you get merged.

Good first issues

Simple issues suited for people new to open source development, and often a good place to start working on a package.
View good first issues