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

FlagDescriptionDefault
--forceInstall even if already on latest versionfalse
--checkCheck for updates without installingfalse

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

  1. Queries the GitHub Releases API for the latest version
  2. Compares with the currently installed version
  3. Downloads the correct binary for your OS/architecture
  4. 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