{
  "slug": "railway-cli-domain-management-commands-b7bca8e8f138",
  "title": "railway CLI domain management commands",
  "tools": [
    "railway"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-06-16T11:51:49.000Z",
  "announced_at": "2026-06-16T11:51:49.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When managing Railway service or custom domains from the CLI, use `railway domain` subcommands to list, inspect, update, retry certificates, or delete. Create a generated service domain or custom domain with `railway domain [DOMAIN]`, adding `--port` when needed; for custom-domain creation with CLI OAuth, use the documented create flow without a separate availability preflight.",
    "examples": [
      "railway domain list --service <service> --json",
      "railway domain status <domain-or-id> --service <service> --json\nrailway domain update <domain-or-id> --port <port> --service <service>\nrailway domain certificate retry <domain-or-id> --service <service>\nrailway domain delete <domain-or-id> --service <service> --yes",
      "railway domain <domain> --port <port> --service <service> --environment <environment>"
    ],
    "gotchas": [
      "Version: v5.14.0",
      "DOMAIN / DOMAIN_OR_ID: Creation accepts an optional custom domain; status, update, certificate retry, and delete require a domain name, URL, or domain ID.",
      "--port: Port to connect to on creation; target port for domain update. Validated as a port value.",
      "--service: Service whose domains to manage; if omitted, uses the resolved linked service context.",
      "--environment: Environment to use; defaults to the linked environment.",
      "--project: Project ID to use; defaults to the linked project.",
      "--domain <DOMAIN>: On update, rename a Railway-provided service domain using a full service domain or host label; custom domains cannot be renamed.",
      "--yes / -y: Skip the delete confirmation dialog.",
      "--json: Output in JSON format.",
      "Service-domain target ports can be updated and service domains can be renamed.",
      "Custom-domain target ports can be updated.",
      "Legacy `railway domain --json` output shapes are preserved.",
      "The change adds local MCP parity for create, list, status, update, certificate retry, and delete domain workflows."
    ]
  },
  "why_it_matters": "Manage Railway service or custom domains while maintaining a project from the CLI.",
  "sources": [
    "https://github.com/railwayapp/cli/releases/tag/v5.14.0",
    "https://github.com/railwayapp/cli/pull/968",
    "https://github.com/railwayapp/cli/blob/v5.14.0/src/commands/domain.rs"
  ],
  "rank": 0.98068,
  "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-9cd740edf6a56245-0:gate",
    "evidence_hash": "c3a851f2c44aa5fde3a62625c6b10048de778d61d346794f1c68d9b99c91077a"
  },
  "review": {
    "draft_hash": "50cfcc5e0e77ee9352d28f9235bf85a9c4ce5263d4d338a906263dc1d889bf2a",
    "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.98 >= 0.9; 2 needed) and Jev gave 0.82 (>= 0.6 needed)."
  }
}
