malv upgrade

Upgrade registry apps in your malv.json to their latest versions.

Usage

# Upgrade all registry apps
malv upgrade

# Preview what would be upgraded
malv upgrade --dry-run

# Upgrade specific apps
malv upgrade @malv/gmail
malv upgrade @malv/gmail @malv/calendar

Options

Option What It Does
--dry-run Show what would be upgraded without making changes
--verbose, -v Show detailed progress
--help, -h Show help

What It Does

  1. Reads malv.json and identifies registry apps (semver versions)
  2. Queries the registry for the latest version of each app
  3. Compares current versions with latest available
  4. Updates malv.json with new versions
  5. Prompts to run malv install to download

Output

$ malv upgrade

Checking for updates...

  ✓ @malv/gmail ^1.0.0 → 1.2.3
  ✓ @acme/tool 1.0.0 → 2.0.0
  ℹ @malv/auth (already on latest)

Updating malv.json...

✓ Upgraded 2 app(s)
  @malv/gmail: ^1.0.0 → 1.2.3
  @acme/tool: 1.0.0 → 2.0.0

Run 'malv install' to download the new versions.

Scope

Only registry apps are upgraded:

Version Format Upgraded?
1.0.0 Yes
^1.0.0 Yes
~1.0.0 Yes
latest No (always resolves to newest)
workspace:* No (local app)
./path No (local app)

Dry Run

Preview upgrades without making changes:

$ malv upgrade --dry-run

Would upgrade:
  @malv/gmail: ^1.0.0 → 1.2.3
  @acme/tool: 1.0.0 → 2.0.0

No changes made.

Upgrading Specific Apps

Upgrade only certain apps:

# Single app
malv upgrade @malv/gmail

# Multiple apps
malv upgrade @malv/gmail @malv/calendar

After Upgrading

The upgrade command only updates malv.json. To download the new versions:

malv install

Private Apps

For private apps, you must be logged in:

malv login
malv upgrade @my-org/private-app

Version Strategy

When upgrading, exact versions are updated to the latest:

If you want to keep semver ranges, manually edit malv.json after upgrading.

Related Commands