railway service
Link a service to the current project and manage service operations.
| Subcommand | Description |
|---|
link | Link a service to the current project |
status | Show deployment status for services |
logs | View logs from a service |
redeploy | Redeploy the latest deployment |
restart | Restart the latest deployment |
scale | Scale a service across regions |
Prompts you to select a service to link.
| Flag | Description |
|---|
-a, --all | Show status for all services in the environment |
--json | Output in JSON format |
| Flag | Description |
|---|
-d, --deployment | Show deployment logs |
-b, --build | Show build logs |
-n, --lines <N> | Number of log lines to fetch (disables streaming) |
-f, --filter <QUERY> | Filter logs using Railway's query syntax |
--latest | Show 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 |
--json | Output logs in JSON format |
See railway logs for detailed usage and examples.
| Flag | Description |
|---|
-y, --yes | Skip confirmation dialog |
--json | Output in JSON format |
| Flag | Description |
|---|
-y, --yes | Skip confirmation dialog |
--json | Output in JSON format |
| Flag | Description |
|---|
--<REGION>=<N> | Set the number of instances for a specific region |
--json | Output in JSON format |
See railway scale for available regions and detailed usage.