{
  "slug": "railway-config-plan-apply-and-current-evaluate-iac-in-the-cli-720172d2521b",
  "title": "railway config plan, apply, and current evaluate IaC in the CLI",
  "tools": [
    "railway"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-21T17:21:50.000Z",
  "announced_at": "2026-08-21T17:21:50.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "If the repository has a Railway IaC file and is linked to the target project and environment, run `railway config plan` to preview changes, `railway config apply` to apply them after confirmation, or `railway config current` to inspect current configuration. The official documentation describes `plan` and `apply`, but I could not verify `config current` there.",
    "examples": [
      "railway config plan",
      "railway config apply"
    ],
    "gotchas": [
      "Version: v5.42.0",
      "Prerequisite: Install the Railway CLI, authenticate with `railway login`, and link the directory to the target project and environment with `railway link`.",
      "Prerequisite: For `plan` and `apply`, the CLI searches the current directory and parent directories for `.railway/railway.ts`, `.railway/railway.py`, or `.railway/railway.go`.",
      "The preserved runner behavior applies when `--runner`, `RAILWAY_IAC_TS_BIN`, or `RAILWAY_IAC_ENGINE=ts` is set.",
      "The release reports TypeScript and Python file evaluation coverage; it does not state Go evaluation coverage."
    ]
  },
  "why_it_matters": "Plan, apply, or inspect the current IaC configuration in a repository using `.railway/railway.ts`, `.railway/railway.py`, or `.railway/railway.go`.",
  "sources": [
    "https://github.com/railwayapp/cli/releases/tag/v5.42.0",
    "https://github.com/railwayapp/cli/pull/1113",
    "https://github.com/railwayapp/docs/blob/main/content/docs/infrastructure-as-code.md"
  ],
  "rank": 0.96025,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-20261016",
    "verdict_id": "wave1b-20261016:wave1b-20261016-ef87b32155206479-1:gate",
    "evidence_hash": "cefe210551a140f26500fe36a2a43f913fe38bd401fe7bf67d542205221d3766"
  },
  "review": {
    "draft_hash": "6d9560ae6d38132e5572ecf4889fc952a015c85b235cf74ed7e976da975b9fef",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.71 (>= 0.6 needed)."
  }
}
