How to change Firebase user login identity from command line (CLI)?

Let Me Tink About It picture Let Me Tink About It · Nov 25, 2015 · Viewed 36.6k times · Source

I'm trying to login to firebase using login credentials of, say, User-Alice.

But when I go through the authorization procedure I get a message saying I'm logged in as User-Bob. This is not mentioned anywhere in the documentation nor does it explain how to change the user I'm logged in as.

How can I change the Firebase logged in user from User-Bob to User-Alice?

Answer

David East picture David East · Nov 25, 2015

The easiest way to handle this is to logout User-Alice and the login User-Bob.

firebase logout
firebase login

But, if you're logged as User-Alice with a Google account in the browser you'll need to sign out there first.