{
  "slug": "firestore-emulator-start-supports-index-requirement-and-index-file-flags-a8d56cd01918",
  "title": "Firestore emulator start supports index requirement and index file flags",
  "tools": [
    "gcloud"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-04T00:00:00.000Z",
  "announced_at": "2026-08-04T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When running the Firestore emulator in Datastore Mode and queries require composite indexes, start it with `--require-indexes` and specify the index file with `--index-file`.",
    "examples": [
      "gcloud emulators firestore start --database-mode=datastore-mode --require-indexes --index-file=<path/to/firestore.indexes.yaml>"
    ],
    "gotchas": [
      "--database-mode (required): Set to `datastore-mode` to use these index flags; valid values are `firestore-native` (default) and `datastore-mode`.",
      "--require-indexes (required): Require composite indexes in the index file for queries that need them. Supported only in Datastore Mode with `--index-file`.",
      "--index-file (required): Path to the index file. Supported only in Datastore Mode with `--require-indexes`."
    ]
  },
  "why_it_matters": "Start a Firestore emulator with indexes required and a specified index file.",
  "sources": [
    "https://docs.cloud.google.com/sdk/docs/release-notes#57900_2026-08-04",
    "https://docs.cloud.google.com/sdk/gcloud/reference/emulators/firestore/start"
  ],
  "rank": 0.93025,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "cloud-20261008",
    "verdict_id": "cloud-20261008:cloud-20261008-eb235a632934177d-3:gate",
    "evidence_hash": "dd37dddad141709b13c3129bdff0b394c937cacc40b42cee3aff73991770f2a5"
  },
  "review": {
    "draft_hash": "0b6a7628f8d2efcb17bac37a987e3d517dbc263c1f4cc67847721c559d154ef4",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "cloud-20261008:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.93 >= 0.9; 2 needed) and Jev gave 0.72 (>= 0.6 needed)."
  }
}
