Repository navigation
Description
Bug
firebase deploy --only firestore:rules and firebase deploy --only firestore:indexes exit with code 0 and print "Deploy complete!" but deploy nothing when the project's firebase.json uses the multi-database firestore array config (introduced GA Feb 2024).
The bug also affects programmatic callers: firebaseTools.deploy() returns { results: [], status: 'success' } for these sub-targets.
The non-sub-target form (firebase deploy --only firestore) works correctly and deploys all configured databases' rules and indexes.
Reproduction
firebase.json:
{
"firestore": [
{ "database": "(default)", "rules": "firestore/firestore.rules", "indexes": "firestore/firestore.indexes.json" },
{ "database": "upsc", "rules": "firestore/upsc.rules", "indexes": "firestore/upsc.indexes.json" }
]
}
Edit firestore/firestore.rules (e.g., add // touch).
$ firebase --version
15.10.0
$ firebase deploy --only firestore:rules
✔ Deploy complete!
Console shows no rules version increment. The edit was silently ignored.
$ firebase deploy --only firestore
i cloud.firestore: checking firestore.rules for compilation errors...
✔ cloud.firestore: rules file firestore.rules compiled successfully
i firestore: deploying rules...
i firestore: latest version of firestore.rules already up to date, skipping...
i firestore: latest version of upsc.rules already up to date, skipping...
✔ Deploy complete!
The plain --only firestore form works.
Expected
firebase deploy --only firestore:rules and firebase deploy --only firestore:indexes should either:
- Deploy rules/indexes for all configured databases (consistent with
--only firestore), or - Exit non-zero with a clear error message (e.g., "sub-targets
:rulesand:indexesare not supported with multi-databasefirestorearray config; use--only firestore")
Either resolution is fine. Silent success is the worst-case outcome — it's pure foot-gun for any team that has CI/CD pipelines targeting --only firestore:rules (which is the canonical narrow-deploy form pre-multi-DB).
Environment
- firebase-tools: 15.10.0
- Node: 20.x (Cloud Functions Gen 2 runtime)
- OS: Windows 11 Home (Git Bash + PowerShell tested; same behavior)
- Firebase project: multi-database (default + secondary), GA Feb 2024 multi-DB feature
- Repro frequency: 100% (tested across 3 sessions before workaround documented)
Workaround
Use firebase deploy --only firestore (no sub-target). Documented as project-wide rule.
Impact
- Anyone using firebase-tools v15.10.0 with multi-database
firestorearray config - High because the failure is silent — CI/CD pipelines pass while production rules are unchanged
- Has caused real-world incidents (rules update pushed twice before realizing the sub-target was no-op)
Related
- Multi-database support: https://firebase.google.com/docs/firestore/multi-databases
firebase deploy --only firestorereference: https://firebase.google.com/docs/cli#deploy_specific_targets- May be related to how
targetsparsing dispatches whenfirestoreis an array vs single object
Happy to provide additional repro detail, deploy-with--debug log, or firebase.json variations if it helps narrow the dispatcher path.
Activity
aalej commentedon May 4, 2026
Hey @Yogaanandd, thanks for the detailed report. It looks like this might be a similar issue to #8114, and looking through or PRs, I think part of #9770 should fix this. I'll check this with our engineering team.