Skip to main content
The upgrade command downloads and installs the latest version of the crewship CLI.

Usage

Options

How It Works

The upgrade process:
  1. Check for updates - Fetches the latest version information from the Crewship API
  2. Download - Downloads the binary for your platform
  3. Verify - Validates the SHA256 checksum to ensure integrity
  4. Backup - Creates a backup of the current binary
  5. Install - Replaces the current binary with the new version
  6. Cleanup - Removes the backup after successful installation
If anything goes wrong during installation, the original binary is automatically restored.

Examples

Check for and Install Updates

Output when an update is available:
Output when already up to date:

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:
This check is non-blocking and won’t slow down your commands. The notification only appears once per new version.

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:
Or reinstall to a user-writable location:

Manual Update

If automatic upgrade fails, download manually: