zero update --check checks the latest GitHub release and compares it with the
local CLI version.
zero update --check
zero update --check --json
zero update --check --repo Gitlawb/zero
zero update --check --target windows-x64The command is intentionally check-only:
- It does not replace the running binary.
- It exits with code
0when the check succeeds, even when an update is available. - It exits with code
1when the release check cannot be completed. --jsonprints the same result in a machine-readable format for scripts and CI.
Useful flags:
| Flag | Purpose |
|---|---|
--repo <owner/repo> |
Check another GitHub repository. |
| `--endpoint <url | owner/repo>` |
--timeout <duration> |
Override the default release check timeout. |
--target <platform-arch> |
Validate release metadata for another supported target. |
Supported targets are linux-x64, linux-arm64, macos-x64, macos-arm64,
windows-x64, and windows-arm64. Without --target, Zero checks the current
platform.
Endpoint resolution order:
--endpointZERO_UPDATE_RELEASE_URL--repohttps://api.github.com/repos/Gitlawb/zero/releases/latest
Installer scripts download the matching release asset for the local platform and
verify its .sha256 file. If Zero is already installed, run zero update --check
before reinstalling.