railway upgrade
Upgrade the Railway CLI to the latest version.
Usage
Options
| Flag | Description |
|---|---|
--check | Show install method and upgrade command without upgrading |
Examples
Upgrade CLI
Automatically detects your install method and runs the appropriate upgrade command.
Check install method
Output:
Supported 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.