cli icon indicating copy to clipboard operation
cli copied to clipboard

Railway CLI

Railway CLI

Build

This is the command line interface for Railway. Use it to connect your code to Railways infrastructure without needing to worry about environment variables or configuration.

View the docs

Installation

The Railway CLI is available through Homebrew, NPM, curl, or as a Nixpkg.

Brew

brew install railway

NPM

npm i -g @railway/cli

Yarn

yarn global add @railway/cli

curl

curl -fsSL https://railway.app/install.sh | sh

Nixpkg

Note: This installation method is not supported by Railway and is maintained by the community.

# On NixOS
nix-env -iA nixos.railway
# On non-NixOS
nix-env -iA nixpkgs.railway

From source

See CONTRIBUTING.md for information on setting up this repo locally.

Documentation

View the full documentation

Feedback

We would love to hear your feedback or suggestions. The best way to reach us is on Discord.

We also welcome pull requests into this repo. See CONTRIBUTING.md for information on setting up this repo locally.