sreq upgrade
Update sreq to the latest version from GitHub Releases.
Synopsis
sreq upgrade [flags]
Description
The upgrade command checks for a newer version of sreq on GitHub and downloads it in-place. It detects your OS and architecture automatically.
Flags
| Flag | Description | Default |
|---|---|---|
--force | Install even if already on latest version | false |
--check | Check for updates without installing | false |
Examples
Update to Latest
sreq upgrade
Output:
Current version: v0.1.0
Latest version: v0.2.0
Downloading sreq v0.2.0 for darwin/arm64...
Updated successfully!
Check for Updates
sreq upgrade --check
Output:
Current version: v0.1.0
Latest version: v0.2.0
Update available! Run 'sreq upgrade' to install.
Force Reinstall
sreq upgrade --force
How It Works
- Queries the GitHub Releases API for the latest version
- Compares with the currently installed version
- Downloads the correct binary for your OS/architecture
- Replaces the existing binary in-place
Alternative Update Methods
Homebrew
brew upgrade sreq
Go Install
go install github.com/Priyans-hu/sreq/cmd/sreq@latest
See Also
- Installation — All installation methods
- version — Show current version