All apps/Railway CLI

Railway CLI

railway

The Railway CLI lets you interact with your Railway projects from the command line.

Runs as railway|macOS, Linux, Windows|docs.railway.com

Command form

ai-draft · 3 tasks · 7 fields

Use the subcommand tabs to deploy, run a command or read logs.

Opens the form; the finished command lands at your prompt, unrun
otty gui railway

railway up

Deploy
DeployExample values, fixed in this page — nothing here reaches a terminal
Basic
Path
directory
Detach from build logs
--detach
Service
string
TasksEach one presets the form for one job
Deploy
pathservicedetach
ParametersOnly these flags are editable in the form
Path
path · positional 0
Detach from build logs
boolean
--detach-d
Service
string
--service-s
Environment
string
--environment-e

railway run

Run with project variables

Everything after the options is the local command; type it at the prompt after the form fills.

Run with project variablesExample values, fixed in this page — nothing here reaches a terminal
Basic
Service
string
Environment
string
TasksEach one presets the form for one job
Run
serviceenvironment
ParametersOnly these flags are editable in the form
Service
string
--service-s
Environment
string
--environment-e

railway logs

Show logs
Show logsExample values, fixed in this page — nothing here reaches a terminal
Basic
Number of lines*
integer
TasksEach one presets the form for one job
Last lines
lines
ParametersOnly these flags are editable in the form
Number of lines
integer
--lines-n
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed railway against its version. A form that does not match your version is not offered.