railway service
Link a service to the current project and manage service operations.
| Subcommand | Aliases | Description |
|---|
list | ls | List services in the current environment |
link | | Link a service to the current project |
delete | remove, rm | Delete a service from an environment |
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 |
| Argument | Description |
|---|
REGION=REPLICAS | One or more replica assignments by region. |
| Flag | Description |
|---|
--json | Output in JSON format |
See railway scale for available regions and detailed usage.