|Docs

railway upgrade

Upgrade the Railway CLI to the latest version.

Usage

railway upgrade [OPTIONS]

Options

FlagDescription
--checkShow install method and upgrade command without upgrading

Examples

Upgrade CLI

railway upgrade

Automatically detects your install method and runs the appropriate upgrade command.

Check install method

railway upgrade --check

Output:

Install method: Homebrew
Binary path: /opt/homebrew/bin/railway
Upgrade command: brew upgrade railway

Supported install methods

MethodUpgrade Command
Homebrewbrew upgrade railway
npmnpm update -g @railway/cli
Bunbun update -g @railway/cli
Cargocargo install railwayapp
Scoopscoop update railway
Shellbash <(curl -fsSL cli.new)

Manual upgrade

If automatic detection fails, you can manually run the upgrade command for your install method.