|Docs

railway redeploy

Redeploy the most recent deployment of a service without uploading new code.

Usage

railway redeploy [OPTIONS]

Options

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

Examples

Redeploy current service

railway redeploy

Redeploy specific service

railway redeploy --service backend

Skip confirmation

railway redeploy --yes

Use cases

Redeploying is useful for:

  • Applying environment variable changes
  • Restarting a service that crashed
  • Triggering a fresh deployment with the same code