← Back to CLIs
Melvynx

railway

Deploy and manage Railway services via CLI - projects, services, deployments, variables, volumes. Use when user mentions 'railway', 'railway deploy', or wants to deploy on Railway.

Install

$ npx api2cli install railway

Details

Skill type: Official CLI
Auth type: bearer
Version: 1.0.0
Author: Melvynx
Views: 0

README

railway

Setup

npm i -g @railway/cli

Verify installation:

railway --version

Always use --json flag when calling commands programmatically (where supported).

Authentication

railway login

Check auth status:

railway whoami

Resources

Projects

CommandDescription
railway initCreate a new Railway project
railway linkLink current directory to an existing project
railway unlinkUnlink current directory from a project
railway statusShow current project and environment status

Deployments

CommandDescription
railway upDeploy current directory
railway deployDeploy with build logs
railway logsView deployment logs
railway logs --followStream deployment logs

Variables

CommandDescription
railway variablesList all environment variables
railway variables set KEY=valueSet an environment variable
railway variables delete KEYDelete an environment variable

Services

CommandDescription
railway serviceSelect a service in the current project
railway domainGenerate or show a service domain

Run

CommandDescription
railway run <command>Run a command with Railway environment variables injected
railway shellOpen a shell with Railway environment variables

Global Flags

FlagDescription
--jsonOutput result as JSON
--environment <name>Specify environment
--service <name>Specify service
Sponsors