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.
Options
Section titled “Options”| Flag | Default | Description |
|---|---|---|
--channel <name> | stable | stable, beta, or dev. |
--version <ver> | latest on channel | Pin to a specific version (e.g. v0.9.0). |
--check | off | Only check the latest version; do not upgrade. |
Examples
Section titled “Examples”Check for an update without applying it:
$ reoclo upgrade --checkcurrent: 0.9.0latest: v0.9.1Apply the latest stable release:
reoclo upgradeSwitch to the beta channel:
reoclo upgrade --channel betaPin to a specific version:
reoclo upgrade --version v0.9.0What it actually does
Section titled “What it actually does”The behavior depends on how the CLI was installed:
| Install method | Behavior |
|---|---|
| Homebrew | Prints brew upgrade reoclo/tap/reoclo and exits. |
| npm | Prints 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.
Channel pointers
Section titled “Channel pointers”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:
curl -sSf https://get.reoclo.com/cli/stableExit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 0 | Already on the latest version, or upgrade instructions printed. |
| 1 | Network failure fetching the channel pointer or release. |
Related
Section titled “Related”- Install the CLI — initial setup
- Upgrading — channel and version-pinning details