{"schemaVersion":"opencli.cli.v1","slug":"railway","name":"Railway CLI","shortName":"railway","binaryName":"railway","maker":{"slug":"railway","name":"Railway","type":"org","url":"https://railway.com","officialPlatformMaker":true,"featuredBuilder":false},"category":"Deploy","description":"The official CLI from Railway. Service deploys, secrets, and logs from the terminal.","tagline":"Service deploys, secrets, and logs from the terminal.","install":{"packageManager":"npm","command":"npm i -g @railway/cli","packageName":null,"npmPackage":"@railway/cli","brewFormula":null,"brewCask":null,"crateName":null,"pypiPackage":null,"goPackage":null,"dockerImage":null},"verify":{"command":"railway whoami","signal":"Confirms the authenticated account."},"quickStart":"railway login && railway up","exampleWorkflow":["railway login && railway up"],"agent":{"readiness":{"label":"Usable with guardrails","score":50,"reasons":["Supports non-interactive/scripted use.","Works well in CI or repeatable automation."],"guardrails":["Prefer small commands and ask the agent to summarize plain text output.","Verify identity/account before running task commands.","Network access is required; avoid leaking secrets in logs.","Require confirmation before apply, delete, deploy, transfer, merge, or write actions."]},"packUrl":"https://opencli.co/cli/railway/agent.md","packMarkdown":"# OpenCLI Agent Pack: Railway CLI\n\nUse this when an AI agent needs to work with `railway`.\n\n## What this CLI is for\nThe official CLI from Railway. Service deploys, secrets, and logs from the terminal.\n\nBest for: service deploys, secrets, and logs from the terminal.\n\n## Agent readiness\nUsable with guardrails (50/100)\n- Supports non-interactive/scripted use.\n- Works well in CI or repeatable automation.\n\n## Install\n```sh\nnpm i -g @railway/cli\n```\n\n## Verify before real work\n```sh\nrailway whoami\n```\nExpected signal: Confirms the authenticated account.\n\n## Safe starting commands\n```sh\nrailway whoami\n```\n\n```sh\nrailway login && railway up\n```\n\n## Guardrails for agents\n- Prefer small commands and ask the agent to summarize plain text output.\n- Verify identity/account before running task commands.\n- Network access is required; avoid leaking secrets in logs.\n- Require confirmation before apply, delete, deploy, transfer, merge, or write actions.\n\n## Suggested agent instruction\nYou may use Railway CLI (`railway`) for service deploys, secrets, and logs from the terminal.. First install it if missing, then run the verify command. Start with read-only or inspection commands. Summarize what you found before changing anything. Ask for confirmation before commands that mutate remote state, spend money, deploy, delete data, merge code, or expose secrets.\n\nSource: OpenCLI\n"},"fit":{"bestFor":"service deploys, secrets, and logs from the terminal.","useThisIf":"You're on Railway and want the official terminal experience.","skipIf":"You're not comfortable with a tool that can write to production.","whatHappensNext":"Run `railway login && railway up` and see what comes back."},"capabilities":{"agentFriendly":true,"supportsJsonOutput":false,"supportsNonInteractive":true,"supportsDryRun":false,"requiresAuth":true,"requiresNetwork":true,"ciFriendly":true,"localFirst":false,"destructivePotential":"high"},"taxonomy":{"useCases":["Service deploys","Secrets","Logs"],"aliases":["railway cli"],"keywords":["deploy logs env"],"tags":["official","agent-friendly"]},"links":{"website":"https://docs.railway.com/reference/cli-api","github":"https://github.com/railwayapp/cli","docs":"https://docs.railway.com/reference/cli-api","opencli":"https://opencli.co/cli/railway","markdown":"https://opencli.co/cli/railway/agent.md","json":"https://opencli.co/cli/railway.json"},"metrics":{"githubStars":555,"latestRelease":"2026-06-08T08:48:15Z","license":"MIT","metricLabel":"npm weekly downloads","metricValue":202352,"metricSource":"npm","metricAsOf":"2026-06-08T11:00:30.246Z"}}