{
  "slug": "stripe-switch-supports-concise-invocation-and-json-output-cf4da649c2bf",
  "title": "stripe switch supports concise invocation and JSON output",
  "tools": [
    "stripe-cli"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-17T22:37:49.000Z",
  "announced_at": "2026-09-17T22:37:49.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a script needs machine-readable output while switching to an authorized Stripe account, run `stripe switch <account_id> --format json`; add `--live` to select live mode.",
    "examples": [
      "stripe switch <account_id> --format json",
      "stripe switch <account_id> --live --format json"
    ],
    "gotchas": [
      "Version: v1.51.0",
      "account_id (required): Account to switch to; required with `--format json` because interactive selection is not scriptable.",
      "--format: Set to `json` for a stable JSON schema suitable for scripting.",
      "--live: Select live mode for the specified account.",
      "Prerequisite: The target account must be authorized.",
      "`stripe switch context` remains available but hidden."
    ]
  },
  "why_it_matters": "Switch Stripe CLI context in a script that consumes machine-readable output.",
  "before": "Run `stripe switch context` to switch context; the source does not state whether JSON output was previously available.",
  "sources": [
    "https://github.com/stripe/stripe-cli/releases/tag/v1.51.0",
    "https://github.com/stripe/stripe-cli/pull/2008",
    "https://github.com/stripe/stripe-cli/blob/v1.51.0/pkg/cmd/switch.go"
  ],
  "rank": 0.95021,
  "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-23bb25a283b1e0ad-2:gate",
    "evidence_hash": "910829fe5ceb0028528946cbbe5f8647c3141d4be442c4477da5f109ec606513"
  },
  "review": {
    "draft_hash": "58d6d85735a31813f0d8c4c55ccf79ba0cba52e8655a455cd6f3531fb60b1d1f",
    "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.95 >= 0.9; 2 needed) and Jev gave 0.72 (>= 0.6 needed)."
  }
}
