You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Firebase CLI does not use Google application default credentials consistently #10879
Firebase is not respecting the Google App default creds that were set by gcloud and wants to authenticate me separately for some commands.
Not sure if bug or a feature, I'll let you decide, @joehan
I logged in with gCloud's application default creds
Ran firebase firestore:locations (a very boring cli command that should return me something), fails.
Interestingly enough, firebase projects:list worked
Tried to login, and it wanted to auth me independently
--
Info
➜ Desktop uname -a
Darwin richieforeman-mac.roam.internal 25.5.0 Darwin Kernel Version 25.5.0: Tue Jun 9 22:28:34 PDT 2026; root:xnu-12377.121.10~1/RELEASE_ARM64_T6041 arm64
changed the title [-]Firebase CLI does not use Google application default credentials[/-][+]Firebase CLI does not use Google application default credentials consistently[/+]on Jul 31, 2026
Firestore:locations also never call needProjectId, even though it needed a project ID, which meant that once we fixed the first bug, if you didn;t have a project set, you'd get a weird null project error. fix: validate active project in firestore:locations command #10881 fixes that.
Activity
[-]Firebase CLI does not use Google application default credentials[/-][+]Firebase CLI does not use Google application default credentials consistently[/+]joehan commentedon Jul 31, 2026
Wooo, you found 2 bugs on top of each other here:
needProjectId, even though it needed a project ID, which meant that once we fixed the first bug, if you didn;t have a project set, you'd get a weird null project error. fix: validate active project in firestore:locations command #10881 fixes that.fix: initialize auth in requirePermissions before projectId check (#1…
fix: initialize auth in requirePermissions before projectId check (#1…
fix: initialize auth in requirePermissions before projectId check (fi…