railway restart
Restart the most recent deployment of a service without triggering a rebuild.
Usage
railway restart [OPTIONS]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
railway restartRestart specific service
railway restart --service backendSkip confirmation
railway restart --yesBehavior
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)