{
  "slug": "railway-config-plan-apply-and-pull-accept-environment-7c22c475194c",
  "title": "railway config plan, apply, and pull accept --environment",
  "tools": [
    "railway"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-08T08:39:15.000Z",
  "announced_at": "2026-10-08T08:39:15.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When you need to target a specific Railway environment, add `--environment <ENV>` to `railway config plan`, `apply`, or `pull`. `<ENV>` can be the environment name or ID.",
    "examples": [
      "railway config plan --environment <ENV>",
      "railway config apply --environment <ENV>",
      "railway config pull --environment <ENV>"
    ],
    "gotchas": [
      "Version: v5.64.0",
      "--environment <ENV>: Selects an environment by name or ID. The release note documents this option for `config plan`, `config apply`, and `config pull`.",
      "Prerequisite: Authenticate with `railway login` and link the current directory to the Railway project with `railway link`; if it is not linked, these config commands prompt for a project and environment.",
      "Docs conflict: Current official docs say config commands do not expose `--environment` selectors, while the v5.64.0 release note explicitly adds this option to plan, apply, and pull. The usage above follows the release note; the current docs may describe newer behavior."
    ]
  },
  "why_it_matters": "Target an environment when planning, applying, or pulling Railway configuration.",
  "sources": [
    "https://github.com/railwayapp/cli/releases/tag/v5.64.0",
    "https://docs.railway.com/cli/global-options",
    "https://github.com/railwayapp/docs/blob/main/content/docs/infrastructure-as-code.md"
  ],
  "rank": 0.91037,
  "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": "wave1-20261014",
    "verdict_id": "wave1-20261014:wave1-20261014-98f5b7c3348bda5a-2:gate",
    "evidence_hash": "4bb8c1fb47dcc71738222340368bc52dad9b00f2b5970ad807aebb4379d11777"
  },
  "review": {
    "draft_hash": "ec37555e9268f0e4a6a64d5aad8419829c29667b1c68a8ed88bfc67ac2661f78",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-08T08:39:15.000Z",
    "decision": "wave1-20261014:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.91 >= 0.9; 2 needed) and Jev gave 0.77 (>= 0.6 needed)."
  }
}
