ubx update checks the latest release on GitHub and updates the ubx binary in place. The update is atomic — it writes to a temp file in the same directory, then renames.
Usage
Flags
| Flag | Description |
|---|---|
--check | Exit 1 if an update is available; exit 0 if already up to date (CI mode) |
--force | Update even if already on the latest version |
Examples
Supported platforms
| Platform | Architecture |
|---|---|
| macOS | amd64, arm64 |
| Linux | amd64, arm64 |
| Windows | amd64 (.exe) |
How the update works
- Fetches the latest release tag from
https://api.github.com/repos/ubiquex/ubx/releases/latest - Compares semantic versions (ignoring pre-release suffixes)
- Downloads the platform-specific binary asset
- Writes it to a temp file adjacent to the current binary
- Sets execute permission (
0755) - Atomically renames (replaces) the current binary
After updating
CI mode
| Code | Meaning |
|---|---|
0 | Already on the latest version |
1 | A newer version is available (with --check) |
See also
ubx upgrade— also upgrades provider schemasubx version— show current version

