upgrade command downloads and installs the latest version of the crewship CLI.
Usage
Options
| Option | Description |
|---|---|
-f, --force | Force reinstall even if already on latest version |
-h, --help | Show help message |
How It Works
The upgrade process:- Check for updates - Fetches the latest version information from the Crewship API
- Download - Downloads the binary for your platform
- Verify - Validates the SHA256 checksum to ensure integrity
- Backup - Creates a backup of the current binary
- Install - Replaces the current binary with the new version
- Cleanup - Removes the backup after successful installation
Examples
Check for and Install Updates
Force Reinstall
Reinstall the latest version even if already up to date (useful for repairing a corrupted installation):Automatic Update Notifications
Crewship automatically checks for updates once per day when you run any command. If a new version is available, you’ll see a notification:Security
- Checksum verification - All downloads are verified against SHA256 checksums
- HTTPS - All downloads use HTTPS encryption
- Atomic updates - The update either completes fully or rolls back
Troubleshooting
Permission Denied
If you get a permission error, the CLI may have been installed with elevated privileges:Manual Update
If automatic upgrade fails, download manually:- macOS / Linux
- Windows