Skip to main content

vers upgrade

Check for and install the latest version of the vers CLI from GitHub releases.

Usage

Options

Examples

Check and upgrade

Check for updates only

Already up to date

Include pre-releases

How it works

The upgrade command:
  1. Version check: Compares current version against GitHub releases
  2. User confirmation: Prompts before downloading and installing
  3. Download: Fetches appropriate binary for your platform
  4. Verification: Validates download using SHA256 checksums
  5. Backup: Creates backup of current binary before replacement
  6. Installation: Replaces current binary with new version
  7. Cleanup: Removes temporary files and backup on success

Platform support

The upgrade system supports multiple platforms:
  • macOS: vers-darwin-amd64, vers-darwin-arm64
  • Linux: vers-linux-amd64, vers-linux-arm64, vers-linux-386
  • Windows: vers-windows-amd64.exe, vers-windows-arm64.exe
The command automatically detects your platform and downloads the appropriate binary.

Security features

Checksum verification

By default, the command verifies SHA256 checksums to ensure download integrity. This prevents corruption or tampering.

Backup and recovery

The command creates a backup before upgrade and restores it if installation fails.

Error handling

Development version

Solution: Use a released version of vers CLI.

No compatible binary

The platform isn’t supported by the current release.

Checksum mismatch

Solution: Try again or use --skip-checksum (not recommended).

Permission issues

Solution: Run with appropriate permissions or use a package manager.

Network failures

Solution: Check internet connection and try again.

Advanced usage

Skip checksum verification

Warning: Only use this if checksum verification fails and you trust the source.

Check pre-releases

Includes beta and release candidate versions in the update check.

Automated workflows

Troubleshooting

Stuck downloads

If download appears stuck, cancel and retry. The command uses a 32KB buffer for progress display.

Permission errors

Ensure you have write access to the vers binary location:

Manual recovery

If upgrade fails and automatic recovery doesn’t work:

Prerequisites

  • Internet connectivity to reach GitHub API
  • Write permissions to the vers binary location
  • Sufficient disk space for download and backup

Common Patterns

Upgrade and verify

Pin to a specific version

vers upgrade always pulls the latest release. To downgrade or pin, re-run the installer with VERS_VERSION:

See Also