LinuxCommandLibrary

railway

Connect code to a Railway project from the command line.

TLDR

Login to a Railway account

$ railway login
copy


Link to an existing Project under a Railway account or team
$ railway link [projectId]
copy


Create a new project
$ railway init
copy


Run a local command using variables from the active environment
$ railway run [cmd]
copy


Deploy the linked project directory (if running from a subdirectory, the project root is still deployed)
$ railway up
copy


Open an interactive shell to a database
$ railway connect
copy

Copied to clipboard