ody update
Check for and install CLI updates
Synopsis
ody update [--check]Flags
| Flag | Alias | Type | Default | Description |
|---|---|---|---|---|
--check | -c | boolean | false | Only check whether an update is available, don't install |
Behavior
Default update flow
Without flags, ody update performs a full check-and-install cycle:
- Queries the GitHub Releases API for the latest published version.
- Compares the latest version against the currently installed version.
- If a newer version is available, downloads and runs the install script to replace the binary.
- Reports the version transition (e.g.,
v1.0.0 → v1.1.0) and confirms the update.
Check-only mode
With --check, the command stops after the version comparison and does not download anything. If an update is available, it prints the new version and suggests running ody update to install it:
Run `ody update` to install v1.1.0Already up to date
If the installed version matches the latest release, the command prints a success message and exits without taking further action:
Already up to date (v1.0.0)Error handling
If the GitHub Releases API is unreachable or returns an error, the command logs the error and exits with a non-zero exit code. If the install script fails during the update, the error output is displayed and the command exits.
Examples
Check for and install the latest version:
ody updateCheck whether an update is available without installing:
ody update --checkSample output when an update is available (check-only):
◇ Finished checking for updates
● New version available: v1.0.0 → v1.1.0
◆ Run `ody update` to install v1.1.0Sample output when already up to date:
◇ Finished checking for updates
◇ Already up to date (v1.1.0)
◆ No update neededRelated
- Installation -- How to install ody
ody init-- Initialize ody in a project