RailwayDocs

railway service

Link a service to the current project and manage service operations.

Usage

Subcommands

SubcommandDescription
linkLink a service to the current project
statusShow deployment status for services
logsView logs from a service
redeployRedeploy the latest deployment
restartRestart the latest deployment
scaleScale a service across regions

Examples

Prompts you to select a service to link.

Show service status

Show all services status

View service logs

Redeploy service

Restart service

Scale service

Options for

FlagDescription
-a, --allShow status for all services in the environment
--jsonOutput in JSON format

Options for

FlagDescription
-d, --deploymentShow deployment logs
-b, --buildShow build logs
-n, --lines <N>Number of log lines to fetch (disables streaming)
-f, --filter <QUERY>Filter logs using Railway's query syntax
--latestShow logs from latest deployment (even if failed/building)
-S, --since <TIME>Show logs since a specific time
-U, --until <TIME>Show logs until a specific time
--jsonOutput logs in JSON format

See railway logs for detailed usage and examples.

Options for

FlagDescription
-y, --yesSkip confirmation dialog
--jsonOutput in JSON format

Options for

FlagDescription
-y, --yesSkip confirmation dialog
--jsonOutput in JSON format

Options for

FlagDescription
--<REGION>=<N>Set the number of instances for a specific region
--jsonOutput in JSON format

See railway scale for available regions and detailed usage.