{
  "slug": "railway-cli-adds-object-action-subcommands-with-backward-compatibility-4dc12ae24d58",
  "title": "Railway CLI adds object-action subcommands with backward compatibility",
  "tools": [
    "railway"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-01-14T18:43:56.000Z",
  "announced_at": "2026-01-14T18:43:56.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When scripting Railway project, service, environment, or variable tasks, use the matching object-action subcommand. Pass the target arguments and options shown below; the older root commands remain available.",
    "examples": [
      "railway service logs --service <service> --lines <count>\nrailway service restart --service <service>\nrailway service scale --service <service> <region>=<replicas>",
      "railway project list\nrailway project link <project>\nrailway project delete <project>",
      "railway environment link <environment>\nrailway variable list --service <service> --environment <environment>\nrailway variable set KEY=VALUE --service <service> --environment <environment>\nrailway variable delete KEY --service <service> --environment <environment>"
    ],
    "gotchas": [
      "Version: v4.24.0",
      "<service> / --service: Service name or ID; omitted service targets the linked service.",
      "<region>=<replicas> (required): Regional replica count assignment for service scale; multiple assignments are accepted.",
      "--lines <N>: Fetch this many log lines; disables streaming.",
      "<project>: Project to link or delete; command-specific prompt/default behavior applies when omitted.",
      "<environment>: Environment to link; omitted value permits interactive selection.",
      "--environment <ENV>: Environment to target for variable operations; defaults to linked environment.",
      "KEY=VALUE (required): Variable assignment; the set command accepts one or more assignments.",
      "KEY (required): Variable key to delete.",
      "Prerequisite: The CLI commands create an authorized Railway client and resolve the linked project context; authenticate and link a project before running them."
    ]
  },
  "why_it_matters": "When scripting Railway project, service, environment, or variable operations, use the object-action subcommands for the corresponding task.",
  "before": "The previous root commands remained supported, including `railway logs`, `railway list`, `railway delete`, and `railway variables` / `railway variables --set`.",
  "sources": [
    "https://github.com/railwayapp/cli/releases/tag/v4.24.0",
    "https://github.com/railwayapp/cli/pull/761",
    "https://github.com/railwayapp/cli/blob/v4.24.0/src/commands/service.rs",
    "https://github.com/railwayapp/cli/blob/v4.24.0/src/commands/project.rs",
    "https://github.com/railwayapp/cli/blob/v4.24.0/src/commands/variable.rs",
    "https://github.com/railwayapp/cli/blob/v4.24.0/src/commands/scale.rs",
    "https://github.com/railwayapp/cli/blob/v4.24.0/src/commands/logs.rs",
    "https://github.com/railwayapp/cli/blob/v4.24.0/src/commands/environment.rs"
  ],
  "rank": 0.91034,
  "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-aaf07e8d19d68c21-1:gate",
    "evidence_hash": "70ef2b3ea6477fa933652ac8046f1b4f60db66b325f700355628ecfccec87040"
  },
  "review": {
    "draft_hash": "80f9278c6b6c341c66656264bb46446e3319fd628de0fe70bc4d129113b805fb",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave1b-20261016:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.91 >= 0.9; 2 needed) and Jev gave 0.73 (>= 0.6 needed)."
  }
}
