{
  "slug": "firebase-login-supports-a-two-phase-non-interactive-flow-0bb100d4af7f",
  "title": "firebase login supports a two-phase non-interactive flow",
  "tools": [
    "firebase"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-05T23:25:48.000Z",
  "announced_at": "2026-08-05T23:25:48.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When authenticating the Firebase CLI in a non-interactive environment, run `firebase login --non-interactive`, visit the printed URL and follow its instructions to get an authorization code, then run `firebase login <auth_code>` in the same CLI setup.",
    "examples": [
      "firebase login --non-interactive",
      "firebase login <auth_code>"
    ],
    "gotchas": [
      "Version: v15.26.0",
      "--non-interactive: Starts the remote login flow when non-interactive mode is enabled.",
      "auth_code: Positional authorization code used to complete a pending login; supply it for the second command.",
      "Prerequisite: Install the Firebase CLI; the official CLI reference requires Node.js v18.0.0 or later when installing via npm.",
      "Prerequisite: Use Firebase CLI v15.26.0 or later for this flow; it was added in v15.26.0.",
      "Prerequisite: Complete the second command where the pending login session was started; the CLI stores temporary login state locally.",
      "Docs conflict: The current general CLI reference says `firebase login` requires browser access and documents `--no-localhost` for remote environments; it does not describe the v15.26.0 two-phase `--non-interactive` flow. https://firebase.google.com/docs/cli"
    ]
  },
  "why_it_matters": "Authenticate the Firebase CLI from a non-interactive coding-agent environment.",
  "sources": [
    "https://github.com/firebase/firebase-tools/releases/tag/v15.26.0",
    "https://github.com/firebase/firebase-tools/blob/v15.26.0/src/commands/login.ts",
    "https://firebase.google.com/docs/cli"
  ],
  "rank": 0.92035,
  "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": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-085bdd867b9a2cdf-1:gate",
    "evidence_hash": "e4a97516b6dd9318f68ae9e5184aa635cca398da411e03753c811a9768604b9a"
  },
  "review": {
    "draft_hash": "e7b92838357f9c5c41e4c867258676e0b86e6982872353f32d7b64241e768a1d",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.92 >= 0.9; 2 needed) and Jev gave 0.69 (>= 0.6 needed)."
  }
}
