{
  "slug": "railway-environment-edit-accepts-project-df5150976806",
  "title": "railway environment edit accepts --project",
  "tools": [
    "railway"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-10T23:08:03.000Z",
  "announced_at": "2026-05-10T23:08:03.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When editing service configuration in a project that is not linked locally, pass the project and environment explicitly. Use `--service-config` with the service, dot path, and value; add `--stage` to stage changes without committing.",
    "examples": [
      "railway environment edit --project <project-id> --environment <environment-id> --service-config <service> <dot.path> <value>",
      "railway environment edit --project <project-id> --environment <environment-id> --service-config <service> <dot.path> <value> --stage"
    ],
    "gotchas": [
      "Version: v4.57.2",
      "--project, -p <PROJECT_ID>: Select the project; the release note says it resolves from this option when provided, otherwise from the linked project.",
      "--environment, -e <ENV>: Select the environment to edit. Required with `--project` when no linked context exists, per the release note.",
      "--service-config, -s <SERVICE> <PATH> <VALUE>: Configure a service using a dot path; provide the service, property path, and value.",
      "--stage: Stage changes without committing.",
      "When using `--project` without linked context, `--environment` is required."
    ]
  },
  "why_it_matters": "Stage or apply service configuration changes for a project that is not linked to the local directory.",
  "before": "Without `--project`, the command required a locally linked project; the linked project remained the default.",
  "sources": [
    "https://github.com/railwayapp/cli/releases/tag/v4.57.2",
    "https://github.com/railwayapp/cli/pull/892",
    "https://docs.railway.com/cli/environment"
  ],
  "rank": 0.96029,
  "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-e061b02811252d47-0:gate",
    "evidence_hash": "f52b1b9acc7cdff600149c678e5311f28b53d396af7c7730703c7738c56cd39d"
  },
  "review": {
    "draft_hash": "724294da9f5eafce9ab845de4dfa2aa69d523604033ebdea762a4036c44061b1",
    "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.80 (>= 0.6 needed)."
  }
}
