railway upgrade
Upgrade the Railway CLI to the latest version.
Usage
railway upgrade [OPTIONS]Options
| Flag | Description |
|---|---|
--check | Show install method and upgrade command without upgrading |
Examples
Upgrade CLI
railway upgradeAutomatically detects your install method and runs the appropriate upgrade command.
Check install method
railway upgrade --checkOutput:
Install method: Homebrew
Binary path: /opt/homebrew/bin/railway
Upgrade command: brew upgrade railwaySupported install methods
| Method | Upgrade Command |
|---|---|
| Homebrew | brew upgrade railway |
| npm | npm update -g @railway/cli |
| Bun | bun update -g @railway/cli |
| Cargo | cargo install railwayapp |
| Scoop | scoop update railway |
| Shell | bash <(curl -fsSL cli.new) |
Manual upgrade
If automatic detection fails, you can manually run the upgrade command for your install method.