5

We connect our flutter app with firebase with the following command in CLI:

flutterfire configure

As stated in docs: https://firebase.flutter.dev/docs/overview/

Lets say, Now I want this app to connect with some other project present on some other Firebase console. Then How can I de-configure my app from previous project and reconfigure with new project present? Is their any command like this:

flutterfire deconfigure

For now I'm facing this error in console when try to reconfiguring my app with other firebase console logged in:

i Found 7 Firebase projects. Selecting project skillzupp-pos.
FirebaseProjectNotFoundException: Firebase project id "skillzupp-pos" could not be found on this Firebase account.

Or if their is any manual way present to deconfigure my app from previos project?

Bilal Saeed
  • 2,092
  • 8
  • 31

2 Answers2

10

I had to follow these steps:

  1. Remove if their any default project exists in .firebaserc file. Before:
    {
      "projects": {
       "default": "diary-app-course"
      }
    }

After


    {
          "projects": {
          }
        }
  1. Run this command in Firebase CLI:
firebase logout
  1. Log in again:
firebase login
  1. Again run this command in Firebase CLI
flutterfire configure
Bilal Saeed
  • 2,092
  • 8
  • 31
0

On my recent project, I want to rename project name after configuration, so:

  1. dart pub global deactivate flutterfire_cli
  2. dart pub global activate flutterfire_cli

After previous steps, I have removed project in: https://console.firebase.google.com/

  1. flutterfire configure It will ask you about overwriting existing configuration files, I choosed Yes.

I hope it will help you.

Murat Kurbanov
  • 589
  • 7
  • 11