railway restart
Restart the most recent deployment of a service without triggering a rebuild.
Usage
Options
| Flag | Description |
|---|---|
-s, --service <SERVICE> | Service to restart (defaults to linked service) |
-y, --yes | Skip confirmation dialog |
--json | Output in JSON format |
Examples
Restart current service
Restart specific service
Skip confirmation
Behavior
This command restarts the service without rebuilding it. The existing deployment image is reused. The command waits for the deployment to become healthy before completing.
Difference from redeploy
- restart: Restarts the existing deployment (no build)
- redeploy: Creates a new deployment from the same source (triggers a build)