|Docs

railway restart

Restart the most recent deployment of a service without triggering a rebuild.

Usage

railway restart [OPTIONS]

Options

FlagDescription
-s, --service <SERVICE>Service to restart (defaults to linked service)
-y, --yesSkip confirmation dialog
--jsonOutput in JSON format

Examples

Restart current service

railway restart

Restart specific service

railway restart --service backend

Skip confirmation

railway restart --yes

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)