Skip to main content

Runtime

Runtime

upgrade

Upgrade the phrony operator CLI to the latest release.

Synopsis

Shell
$ phrony upgrade [--check] [--version VERSION] [-y]

Description

Fetches the latest release from the Go module proxy and reinstalls the operator CLI with go install. Requires the Go toolchain on PATH. Does not contact the runtime.

When you run a runtime-backed command with a mismatched CLI version, the CLI prints a colored warning (disabled when NO_COLOR is set). Use phrony upgrade to align the CLI with your runtime release.

Flags

FlagDescription
--check
Report whether an update is available; exit 0 either way
--version VERSION
Install a specific tag (for example v0.3.0) instead of @latest
-y, --yes
Skip the confirmation prompt before installing

Examples

Check for updates without installing:

Shell
$ phrony upgrade --check

Install the latest release:

Shell
$ phrony upgrade

Install a specific version without prompting:

Shell
$ phrony upgrade --version v0.3.0 -y

Up next