update
Update Runix to the latest version.
Usage
runix update [flags]
Description
Checks GitHub Releases for the latest version and downloads the appropriate binary for your platform. Verifies SHA256 checksums before replacing the current binary.
Examples
# Update to the latest version
runix update
# Current: v0.1.0
# Latest: v0.2.0
# Updating to v0.2.0...
# Updated to v0.2.0 successfully.
# Check for updates without installing
runix update --check
# Current: v0.1.0
# Latest: v0.2.0
# Update available: https://github.com/runixio/runix/releases/tag/v0.2.0
# Install a specific version
runix update --version v0.2.0
Flags
| Flag | Default | Description |
|---|---|---|
--check | false | Only check for updates, do not install |
--version | latest | Install a specific version |
How It Works
- Queries
https://api.github.com/repos/runixio/runix/releases/latest - Finds the asset matching
runix_<os>_<arch> - Downloads to a temp file
- Verifies SHA256 checksum from
checksums.txt - Makes binary executable (
chmod 0755) - Replaces the current binary (via rename or copy for cross-device)
- Reports success
Checksum Verification
After downloading, Runix verifies the SHA256 checksum:
- Downloads
checksums.txtfrom the release - Finds the hash for the matching asset name
- Computes SHA256 of the downloaded binary
- Compares the hashes
If verification fails, the update is aborted and the current binary is preserved.
Platform Assets
The asset name format is:
runix_<os>_<arch> # Linux/macOS
runix_<os>_<arch>.exe # Windows
Supported combinations: linux/amd64, linux/arm64, darwin/amd64, darwin/arm64, windows/amd64.
What's Next
- Version Command — Check current version