Railway CLI volume list JSON output
Introduced 2026-01-08 · score 0.95
HOW TO USE IT
When a script needs to inspect Railway volumes, run `railway volume list --json` to print the listing as JSON.
railway volume list --jsonWHY THIS HELPS
Read volume listings as JSON in a script that inspects Railway volumes.
REQUIREMENTS AND LIMITATIONS
- Version: v4.18.1
- --json: Output in JSON format.
- --service <SERVICE>: Select a service ID.
- --environment <ENV>: Select an environment ID.
- --project <PROJECT_ID>: Select a project ID.
- Prerequisite: Authenticate with a Railway account using `railway login`; for CI/CD, set `RAILWAY_TOKEN` or `RAILWAY_API_TOKEN` as appropriate.
FIRST-PARTY EVIDENCE
- https://github.com/railwayapp/cli/releases/tag/v4.18.1
- https://docs.railway.com/cli/volume
- https://docs.railway.com/cli
Check the installed version and the source before using it. Entry JSON