Search code examples
bashflutterfirebasecommand-line-interface

Error: Could not determine active Firebase project directory in firebase while switching account with firebase login:use


I used Firebase CLI to create a new firebase project for my flutter app. now, my client wants to use another email with it's own firebase project. That project already has the datas (production data) that I need. However after doing firebase login:add I have added both the emails, now when I do firebase login:use , I'm getting

Error: Could not determine active Firebase project directory

Having trouble? Try firebase [command] --help

in my cli. I hope my question was clear. thank you for reading this far.


Solution

  • Use this command: firebase login --reauth It generates a link on the terminal which redirects you to Google Sign In on the web, where you can choose an new account to log in with.