How-to: upgrade the CLI to the latest released version from the terminal
This is a worked task for keeping rp itself current. The reference page
(rp doc upgrade) documents the single flag; this page shows the two supported
invocations and the environment override.
Goal: update the installed rp — whether from main's latest release or a
pinned tag — straight from the terminal, without cloning the repository.
Steps
- Upgrade to the latest released version. This re-fetches the installer from the configured upgrade repository and re-runs it in place:
$ rp upgrade
The command prints the current and target version, then re-downloads
install.sh and executes it. There is no preview or confirmation step — it
runs immediately.
- (Optional) Pin to a specific tagged release instead of latest. Append
--versionwith a semantic version:
$ rp upgrade --version 1.2.3
This fetches that tag's own install.sh and runs it against that tag's
payload, so a downgrade behaves identically to an upgrade.
Notes
- The install is replaced wholesale: the installer re-extracts
rpinto~/.rpand refreshes the/usr/local/bin/rpsymlink. Because the whole install is rewritten, nothing needs refreshing by hand afterwards. - The symlink refresh may prompt for
sudo; run the command in a session that can grant it. rp upgraderequirescurl(to fetch the installer),bash(to run it), andtarplus asha256sum/shasumchecksum tool (to unpack and verify the payload). It does not requiregit— the installer is pulled fromraw.githubusercontent.com.- The source repository defaults to
objctp/runpod-cli. Override it by exportingRP_UPGRADE_REPO(e.g.export RP_UPGRADE_REPO=your-org/your-fork) before runningrp upgrade. Note the override only redirects whereinstall.shis fetched from; the fetched installer hardcodes its own payload repository, so a fork must also edit the repo variable inside itsinstall.shto serve its own tarballs. - The only accepted options are
--version <x.y.z>and--help. There is no--check,--yes, or--forceflag. - rp checks for a newer release automatically once per day (cached under
$RP_CONFIG_HOME) and prints a short notice when one exists — naming the right command for your install method (rp upgrade,npm update -g runpod-cli, orbrew upgrade runpod-cli). SetRP_NO_UPDATE_CHECK=1to silence it.