This is the command line interface for Railway. Use it to connect your code to Railway's infrastructure without needing to worry about environment variables or configuration.
The Railway command line interface (CLI) connects your code to your Railway project from the command line.
The Railway CLI allows you to:
- Create new Railway projects from the terminal
- Link to an existing Railway project
- Pull down environment variables for your project locally to run
- Create services and databases right from the comfort of your fingertips
And more.
Follow the CLI guide to install the CLI and run your first command.
For non-interactive authentication details, see the CLI guide.
cargo install railwayapp --lockedbrew install railwaynpm install -g @railway/cli# Install
bash <(curl -fsSL cli.new)
# Uninstall
bash <(curl -fsSL cli.new) -rscoop install railwayInstall with Paru
paru -S railwayapp-cliInstall with Yay
yay -S railwayapp-clidocker pull ghcr.io/railwayapp/cli:latestFor GitHub Actions setup, see the blog post at blog.railway.com/p/github-actions.
For GitLab CI/CD setup, see the blog post at blog.railway.com/p/gitlab-ci-cd.
See CONTRIBUTING.md for information on setting up this repository locally.
We would love to hear your feedback or suggestions. The best way to reach us is on Central Station.
We also welcome pull requests into this repository. See CONTRIBUTING.md for information on setting up this repository locally.