{
  "slug": "railway-sandbox-create-and-fork-accept-public-domains-5c9386fca72a",
  "title": "railway sandbox create and fork accept public domains",
  "tools": [
    "railway"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-11T23:07:52.000Z",
  "announced_at": "2026-09-11T23:07:52.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When creating or forking a sandbox that needs public HTTPS routes and private-network access, pass `--private-network` and repeat `--domain [PREFIX:]PORT` for each route. Read the published URLs from human or JSON output; if routes are still publishing, check `railway sandbox list` for the URLs.",
    "examples": [
      "railway sandbox create --private-network --domain <PORT>",
      "railway sandbox fork <SOURCE_SANDBOX_ID> --private-network --domain <PREFIX>:<PORT> --json"
    ],
    "gotchas": [
      "Version: v5.54.0",
      "--domain [PREFIX:]PORT: Repeatable; publishes an HTTP domain on a port, optionally with a prefix. Requires `--private-network`. Prefixes must be unique, 1–46 lowercase letters, digits, or hyphens, with no leading or trailing hyphen; ports must be unique and from 1 to 65535. Up to 10 domains are supported.",
      "--private-network: Joins the environment's private network. Required when using `--domain`; forks do not inherit the source sandbox's network mode.",
      "<SOURCE_SANDBOX_ID>: Optional source sandbox ID for `fork`; defaults to the active sandbox. The source sandbox must be running.",
      "--json: Outputs the created sandbox as JSON.",
      "Prerequisite: Install the Railway CLI, sign in, and select/link the project and environment to use.",
      "Prerequisite: The source sandbox must be running to fork it.",
      "Prerequisite: Public domains require `--private-network`. Creation can report `domains: publishing`; run `railway sandbox list` to see the URLs.",
      "Requires `--private-network`.",
      "Routes may still be publishing when creation reports the URLs."
    ]
  },
  "why_it_matters": "Create or fork a sandbox with public HTTPS routes while keeping it on the private network.",
  "sources": [
    "https://github.com/railwayapp/cli/releases/tag/v5.54.0",
    "https://github.com/railwayapp/cli/pull/1197",
    "https://docs.railway.com/cli/sandbox",
    "https://docs.railway.com/sandboxes/quickstart"
  ],
  "rank": 0.97031,
  "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-c7260529f589a05c-0:gate",
    "evidence_hash": "af7cf1a1596858b3fd4084f83ff46120fecb9892169080a573f29eecaa9fa5b1"
  },
  "review": {
    "draft_hash": "31cf96b84f90ad2c8fd49e36c05189408b1be3731d74d28971de9e9853a144d6",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1-20261014:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.75 (>= 0.6 needed)."
  }
}
