composio upgrade command updates your CLI installation to the latest available version.
Usage
Description
The upgrade command:- Fetches the latest release from GitHub
- Compares with your current version
- Downloads the appropriate binary for your platform
- Replaces the existing binary with the new version
- Verifies the installation
Examples
Basic Upgrade
Verify Upgrade
Platform Detection
The upgrade command automatically detects your platform and downloads the appropriate binary:| Platform | Architecture | Binary |
|---|---|---|
| Linux | x86_64 | composio-linux-x64.zip |
| Linux | ARM64 | composio-linux-aarch64.zip |
| macOS | Intel | composio-darwin-x64.zip |
| macOS | Apple Silicon | composio-darwin-aarch64.zip |
Release Tags
CLI binaries are published as GitHub release assets with the tag format:@composio/[email protected]
Legacy
v<semver> tags (e.g., v0.1.24) are supported during the migration period for backward compatibility.Environment Variables
Theupgrade command supports these environment variables for customization:
GitHub API base URL (useful for GitHub Enterprise)
GitHub repository owner
GitHub repository name
Specific release tag to upgrade to
GitHub access token (prevents rate limiting during development)
Override version for debugging (development use only)
Examples
Upgrade to Specific Version
Custom GitHub API (Enterprise)
Avoid Rate Limiting
Installation Location
The upgrade replaces the binary at:COMPOSIO_INSTALL during initial installation.
Version Comparison
The CLI uses semantic versioning (semver) to compare versions:- Major: Breaking changes (e.g., 1.0.0 → 2.0.0)
- Minor: New features (e.g., 0.1.0 → 0.2.0)
- Patch: Bug fixes (e.g., 0.1.0 → 0.1.1)
Troubleshooting
Permission Denied
If you get permission errors during upgrade:Download Failures
If the download fails: 1. Check internet connection 2. Verify GitHub access:Rate Limiting
GitHub API has rate limits (60 requests/hour for unauthenticated users). If you hit the limit:Unsupported Platform
If your platform is not supported:Manual Upgrade
If the automatic upgrade fails, you can manually upgrade:Rollback
If you need to downgrade to a previous version:Related Commands
composio version- Display current versioncomposio login- Authenticate after upgrade
Next Steps
version
Check your CLI version
Installation
Installation guide