mirror of
https://github.com/Twigpine/zero.git
synced 2026-11-11 23:40:28 -10:00
* Add M2 install scripts * Harden install archive extraction * Fix install script runtime test platform
1.0 KiB
1.0 KiB
Zero Update Flow
zero update --check checks the latest GitHub release for Gitlawb/zero and compares it with the local CLI version.
For M2 this 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.- Release checks time out after 5 seconds by default.
The release endpoint resolves in this order:
options.endpointwhen callingcheckForUpdatefrom code.ZERO_UPDATE_RELEASE_URLfrom the environment.https://api.github.com/repos/Gitlawb/zero/releases/latest.
options.endpoint and ZERO_UPDATE_RELEASE_URL may be a full URL or an owner/repo slug.
Installer scripts download the matching release asset for the local platform and verify its .sha256 file. If Zero is already installed, use this command before re-running the installer.