railway link adds a --json flag for CI
Introduced 2026-01-08 · score 0.94
HOW TO USE IT
When a CI job needs to link a Railway project with machine-readable output, run `railway link --project <project-id> --environment <environment-id> --json`. The command links the project to the current directory and emits JSON.
railway link --project <project-id> --environment <environment-id> --jsonWHY THIS HELPS
Link a Railway project from a CI job that needs machine-readable output.
REQUIREMENTS AND LIMITATIONS
- Version: v4.20.0
- --project <ID|NAME> (required): Project to link to; CI example uses a project ID.
- --environment <ID|NAME> (required): Environment to link to; CI example uses an environment ID.
- --json: Output in JSON format.
FIRST-PARTY EVIDENCE
Check the installed version and the source before using it. Entry JSON