railway CLI adds standalone railway restart command
Introduced 2026-01-08 · score 0.94
HOW TO USE IT
When you need to restart a Railway service, run `railway restart`; it restarts the most recent deployment without rebuilding it.
railway restartrailway restart --service <SERVICE>railway restart --yesWHY THIS HELPS
Restart the Railway resource or service you are working on from the CLI.
REQUIREMENTS AND LIMITATIONS
- Version: v4.22.0
- --service <SERVICE> (-s): Selects the service to restart; defaults to the linked service.
- --yes (-y): Skips the confirmation dialog.
- --json: Outputs in JSON format.
- Prerequisite: Install the Railway CLI and authenticate with `railway login` before using it.
- Prerequisite: The default target is the linked service; use `railway link` to link the project if needed.
FIRST-PARTY EVIDENCE
- https://github.com/railwayapp/cli/releases/tag/v4.22.0
- https://docs.railway.com/cli/restart
- https://docs.railway.com/cli
Check the installed version and the source before using it. Entry JSON