Skip to content

reoclo upgrade

reoclo upgrade [options]

Updates the CLI to the latest version on a channel, or prints the appropriate package-manager command if the binary is managed by Homebrew or npm.

FlagDefaultDescription
--channel <name>stablestable, beta, or dev.
--version <ver>latest on channelPin to a specific version (e.g. v0.9.0).
--checkoffOnly check the latest version; do not upgrade.

Check for an update without applying it:

Terminal window
$ reoclo upgrade --check
current: 0.9.0
latest: v0.9.1

Apply the latest stable release:

Terminal window
reoclo upgrade

Switch to the beta channel:

Terminal window
reoclo upgrade --channel beta

Pin to a specific version:

Terminal window
reoclo upgrade --version v0.9.0

The behavior depends on how the CLI was installed:

Install methodBehavior
HomebrewRuns brew upgrade reoclo/tap/reoclo for you. If brew is missing or fails, it prints the command and exits 1.
npm / pnpm / yarnRuns the manager’s global install of the target version. Same fallback when the manager is missing or fails.
mise / asdfPrints the install and use commands.
Curl / direct binaryReplaces the binary in place and keeps the previous binary next to it.

This delegation prevents version mismatches that would otherwise occur if the CLI overwrote a binary owned by a package manager.

The CLI fetches the latest version for a channel from https://get.reoclo.com/cli/<channel> (a plain text file containing the tag). You can fetch the same value yourself:

Terminal window
curl -sSf https://get.reoclo.com/cli/stable
CodeMeaning
0Already on the latest version, the upgrade completed, or instructions were printed (mise/asdf).
1The package manager was missing or failed, or the in-place replacement failed.
7The CLI could not resolve the latest version.