RailwayDocs

railway upgrade

Upgrade the Railway CLI to the latest version.

Usage

Options

FlagDescription
--checkShow 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

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.