CLI
Upgrade
Upgrade your Shelve CLI to the latest version.
Checks npm for a newer @shelve/cli version and updates the dependency in your project.
terminal
shelve upgrade
shelve --json upgrade
Behaviour
- Compares the installed version with the npm
latesttag. - If already up to date, exits successfully.
- Otherwise runs
nypm addDependency('@shelve/cli@latest').
Global --yes / non-interactive mode skips any interactive steps during the upgrade flow.
JSON output
{
"ok": true,
"command": "upgrade",
"data": {
"previous": "5.0.3",
"current": "latest",
"updated": true
}
}
When already current: "updated": false and "current" matches "previous".