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
HomebrewPrints brew upgrade reoclo/tap/reoclo and exits.
npmPrints npm i -g @reoclo/cli@latest (or the pinned version) and exits.
Curl / direct binary(Coming soon) atomic in-place replacement. For now, re-run curl -sSL https://get.reoclo.com/cli | bash manually.

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, or upgrade instructions printed.
1Network failure fetching the channel pointer or release.