'FlutterFire cli - how to switch between separate firebase consoles

I have two separate firebase consoles accessed from two separate google accounts.

I originally set up the Firebase "A" console using flutterfire cli.

In my completely separate google account for firebase console "B" I have created a project that I now need to run flutterfire configure for.

However, from flutterfire cli I cannot figure out how to sign out of [email protected] and into [email protected]. firebase projects:list always shows the three projects from Firebase console "A". Never "B". Even after firebase logout and firebase login. I can authenticate to both accounts, but firebase projects:list when signed into [email protected] only shows the three projects from Firebase console "A".

How do I correctly configure flutterfire and firebase to easily switch between my google accounts so I can correctly run flutterfire configure for my "B" console projects?



Solution 1:[1]

I had the same scenario. What worked for me was the following:

Add the A account in the possible accounts to use.

firebase login:add [email protected]

Configure project selection with correct account.

flutterfire configure --account [email protected]

Solution 2:[2]

Step 1: See all available accounts

 firebase login:list  

Step 2: Add more accounts:

firebase login:add [email protected]

Step 3: Switch to another email

firebase login:list  (to see if email was successfully added)
firebase login:use [email protected] (to switch email)

Step 4 :

flutterfire configure --account [email protected]

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 egonzal
Solution 2 Gizmo1337