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
- Reads
malv.jsonand identifies registry apps (semver versions) - Queries the registry for the latest version of each app
- Compares current versions with latest available
- Updates
malv.jsonwith new versions - Prompts to run
malv installto 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:
1.0.0→2.0.0(latest)^1.0.0→1.2.3(latest in range, then updates to exact)~1.0.0→1.0.5(latest in range, then updates to exact)
If you want to keep semver ranges, manually edit malv.json after upgrading.
Related Commands
- malv install - Download upgraded versions
- malv update - Update the CLI itself