devo upgrade¶
Upgrade the CLI tool to the latest version from GitHub Releases.
Synopsis¶
Description¶
Automatically downloads and installs the latest version of Devo CLI from GitHub Releases. Supports binary upgrades for Linux, macOS, and Windows.
Options¶
| Option | Short | Description |
|---|---|---|
--force |
-f |
Force upgrade without confirmation |
--check |
-c |
Check for updates without upgrading |
--help |
Show help message and exit |
Usage¶
Check for Updates¶
Output:
or
Upgrade¶
Interactive flow:
Current version: 1.2.0
Latest version: 1.3.0
New version available!
Changelog:
- feat: Add new SSM database commands
- fix: Improve error handling in commit command
- docs: Update documentation
Upgrade to version 1.3.0? [Y/n]: y
Downloading devo-linux-amd64...
✓ Download complete
✓ Verifying binary...
✓ Installing...
✓ Upgrade successful!
Devo CLI upgraded to version 1.3.0
How It Works¶
- Version Check: Compares current version with latest GitHub release
- Download: Downloads platform-specific binary from GitHub Releases
- Verification: Verifies binary integrity
- Backup: Creates backup of current binary
- Installation: Replaces current binary with new version
- Cleanup: Removes temporary files
Platform Support¶
| Platform | Binary Format | Notes |
|---|---|---|
| Linux | Single file | Direct replacement |
| macOS | Tarball (.tar.gz) | Extracts to directory |
| Windows | ZIP (.zip) | Extracts to directory |
Installation Locations¶
The upgrade command detects your installation location:
/usr/local/bin/devo- System-wide installation~/.local/bin/devo- User installation- Custom locations - Detected from current binary path
Examples¶
Basic Upgrade¶
Force Upgrade¶
Automated Upgrade (CI/CD)¶
# Non-interactive upgrade
devo upgrade --force
# Check exit code
if [ $? -eq 0 ]; then
echo "Upgrade successful"
else
echo "Upgrade failed"
fi
Automatic Version Checks¶
Devo CLI automatically checks for new versions periodically (configurable):
# Disable automatic version checks
devo config set version_check.enabled false
# Enable automatic version checks
devo config set version_check.enabled true
When a new version is available, you'll see a notification:
Rollback¶
If the upgrade fails or you want to rollback:
# The old binary is backed up as devo.backup
# Restore it manually:
# Linux/macOS
sudo mv /usr/local/bin/devo.backup /usr/local/bin/devo
# Or for user installation
mv ~/.local/bin/devo.backup ~/.local/bin/devo
Troubleshooting¶
Permission denied¶
Solution: Run with sudo for system-wide installation:
Or upgrade to user directory:
# Install to ~/.local/bin instead
curl -fsSL https://raw.githubusercontent.com/edu526/devo-cli/main/install.sh | bash
Download failed¶
Possible causes:
- No internet connection
- GitHub is down
- Firewall blocking access
Solution:
Binary verification failed¶
Solution:
Already on latest version¶
Security¶
- Binaries are downloaded from official GitHub Releases
- SHA256 checksums are verified (when available)
- HTTPS is used for all downloads
- Old binary is backed up before replacement
Exit Codes¶
| Code | Description |
|---|---|
| 0 | Success (upgraded or already on latest) |
| 1 | Error (download failed, permission denied, etc.) |
See Also¶
- Installation Guide - Initial installation
- GitHub Releases - View all releases
- Changelog - Version history
Notes¶
- Requires internet connection
- May require sudo for system-wide installations
- Automatic version checks can be disabled in config
- Old binary is backed up as
devo.backup - Works with binary installations only (not pip installations)