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.
The Railway CLI is available through Homebrew, NPM, curl, or as a Nixpkg.
brew install railway
npm i -g @railway/cli
yarn global add @railway/cli
curl -fsSL https://railway.app/install.sh | sh
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
See CONTRIBUTING.md for information on setting up this repo locally.
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.