railway config plan supports --detailed-exit-code
Introduced 2026-06-19 · score 0.93
HOW TO USE IT
When a script needs to distinguish a clean plan from pending changes, run `railway config plan --detailed-exit-code`. It exits 0 when nothing would change and 2 when changes are pending; errors remain non-zero.
railway config plan --detailed-exit-codeWHY THIS HELPS
Integrate a Railway config plan into a script that needs an exit code indicating whether changes are present.
BEFORE THIS CHANGE
Without the opt-in flag, `railway config plan` retains its default exit behavior.
REQUIREMENTS AND LIMITATIONS
- Version: v5.18.0
- railway config plan (required): Previews configuration changes without applying them.
- --detailed-exit-code: Opt-in: exits 0 when nothing would change, 2 when changes are pending; errors remain non-zero.
- Prerequisite: Install the Railway CLI and authenticate with `railway login`, or set a token for CI/CD.
FIRST-PARTY EVIDENCE
- https://github.com/railwayapp/cli/releases/tag/v5.18.0
- https://docs.railway.com/infrastructure-as-code
- https://docs.railway.com/cli
Check the installed version and the source before using it. Entry JSON