squadron upgrade
Upgrade squadron to the latest version by downloading from GitHub releases.
Usage
squadron upgrade [--version <version>]Flags
| Flag | Description |
|---|---|
--version | Install a specific version (e.g., v0.0.13) |
Examples
Upgrade to the latest release:
squadron upgradeInstall a specific version:
squadron upgrade --version v0.0.13How It Works
- Fetches release info from the GitHub Releases API
- Finds the correct binary for your OS and architecture
- Downloads and extracts the tar.gz archive
- Replaces the current binary with an atomic swap
If the current version matches the target, it prints “Already up to date” and exits.
Dev builds (built from source without version ldflags) will show a warning but proceed with the upgrade.
Permissions
If the binary is installed in a system directory (e.g., /usr/local/bin/), you may need to run with sudo:
sudo squadron upgradeLast updated on