Usage
Flags
Include pre-release versions when checking for updates. By default, only stable releases are considered.
How it works
The upgrade process:Examples
Supported platforms
The upgrade command automatically detects your platform and downloads the correct binary:- macOS: Darwin (Intel x86_64, Apple Silicon arm64)
- Linux: x86_64, arm64, i386
- Windows: x86_64, i386
Output examples
Already up to date
Upgrade available
Pre-release upgrade
Development builds
If you’re running a development build, you’ll be warned:y to proceed or n to cancel.
Safety features
Automatic backup
Your current binary is backed up before replacement
Checksum verification
Downloads are verified against official checksums
Rollback on failure
Automatically restores backup if installation fails
Platform detection
Automatically downloads the correct binary for your system
Troubleshooting
Permission denied
Permission denied
If you installed hc to a system directory, you may need elevated permissions:
Checksum verification failed
Checksum verification failed
This usually indicates a corrupted download. Try again:If the problem persists, download manually from the releases page.
No compatible release found
No compatible release found
Your platform may not be supported. Check the releases page for available platforms.
Network/firewall issues
Network/firewall issues
The upgrade command needs to access:
https://api.github.com- To check for releaseshttps://github.com- To download binaries
Manual upgrade
If automatic upgrade doesn’t work, you can upgrade manually:- Download the latest release from GitHub
- Extract the binary
- Replace your existing
hcbinary:
See also
- hc version - Check current version
- Installation - Initial installation guide
- GitHub Releases - View all releases