{
  "slug": "railway-shell-installer-uses-a-user-owned-install-directory-415001e08ee1",
  "title": "Railway shell installer uses a user-owned install directory",
  "tools": [
    "railway"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-08T20:00:45.000Z",
  "announced_at": "2026-05-08T20:00:45.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When elevated permissions are unavailable, install the Railway CLI with the shell installer; it targets `~/.railway/bin` by default or `$RAILWAY_HOME/bin` when `RAILWAY_HOME` is set. The installer also makes the user-owned binary eligible for its self-update behavior. [Official v4.57.0 installer](https://github.com/railwayapp/cli/blob/v4.57.0/install.sh)",
    "examples": [
      "curl -fsSL https://railway.com/install.sh | sh"
    ],
    "gotchas": [
      "Version: v4.57.0",
      "Requires Shell installer (`install.sh`)",
      "RAILWAY_HOME: When set, the installer uses `$RAILWAY_HOME/bin` as its default binary directory; otherwise it defaults to `$HOME/.railway/bin`.",
      "When `RAILWAY_HOME` is set, the install path is `$RAILWAY_HOME/bin/railway`.",
      "The release span links a PR description that is truncated after `## What changed`; additional details are unavailable."
    ]
  },
  "why_it_matters": "Install the Railway CLI in an agent environment where elevated permissions are unavailable.",
  "before": "The `cli.new` flow installed to `/usr/local/bin`, which often required elevated permissions. The release note says shell installs could then fall back to notification-only update behavior.",
  "sources": [
    "https://github.com/railwayapp/cli/releases/tag/v4.57.0",
    "https://github.com/railwayapp/cli/pull/888",
    "https://github.com/railwayapp/cli/blob/v4.57.0/install.sh"
  ],
  "rank": 0.9603,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3-rejudge+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-20261016",
    "verdict_id": "wave1b-20261016:wave1b-20261016-494c79c0ba4acad6-0:rescue",
    "evidence_hash": "d8c4627d4987ea4d877165bfd5e759e55213cbe0b39df248a6d088dca5b6c910"
  },
  "review": {
    "draft_hash": "96c6bc2cff1e31f372d4c2f19c41e609818aace5a7a17b432b4aeacd102162da",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:rescue",
    "reason": "Rescue path: first rejected only because the extracted card lacked usage; judged again on the enriched card, 3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.69 (>= 0.6 needed)."
  }
}
