{
  "slug": "opentofu-commands-support-simultaneous-ui-and-json-output-fa066f210608",
  "title": "OpenTofu commands support simultaneous UI and JSON output",
  "tools": [
    "opentofu"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-14T11:57:20.000Z",
  "announced_at": "2026-05-14T11:57:20.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a supported command needs both human-readable UI and machine-readable output, run it with `-json-into=<filename>` to save JSON while keeping the UI on standard output.",
    "examples": [
      "tofu plan -json-into=<JSON_FILE>"
    ],
    "gotchas": [
      "Version: v1.12.0",
      "-json-into=<FILENAME> (required): Writes the same machine-readable output as `-json` to the given file, allowing simultaneous human-readable and machine-readable output.",
      "Prerequisite: Use a command that supports both human-oriented UI and machine-readable JSON output.",
      "Applies to commands that support both human-oriented UI output and machine-readable JSON output."
    ]
  },
  "why_it_matters": "Use machine-readable output to supplement the normal OpenTofu UI while implementing or debugging a tool that interprets command output.",
  "before": "Previously, commands that supported both output formats could be run with only one or the other.",
  "sources": [
    "https://github.com/opentofu/opentofu/releases/tag/v1.12.0",
    "https://opentofu.org/blog/dual-command-output-streams/",
    "https://opentofu.org/docs/v1.12/intro/whats-new/"
  ],
  "rank": 0.97026,
  "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-706671206177687f-2:gate",
    "evidence_hash": "7d0b40010546492ab4129a2df72b64a1b24fae86b2d3c825928d33af914be87f"
  },
  "review": {
    "draft_hash": "fb409e4dca92eb9befc397ef35d49ec9da02ad7112aeb972c21de7af7dfb770c",
    "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.71 (>= 0.6 needed)."
  }
}
