firebase deploy --only firestore:indexes

Category: Firebase & Firestore

firebase deploy --only firestore:indexes

Deploy Firestore composite indexes

Uploads the index definitions from firestore.indexes.json to the project. Composite indexes are required for queries that combine multiple fields or range filters. Indexes build asynchronously; watch firestore:operations:list or the console to see when they are ready. Related: firebase firestore:indexes lists deployed indexes.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.