$ firebase init
! Caution! Initializing outside your home directory
? What Firebase do you want to use? (Use arrow keys)
I tried to press arrow keys but nothing is happening. How can I select an existing firebase app while doing firebase init
?
Firebase automatically creates API keys for your project when you do any of the following: 1 Create a Firebase project > Browser key auto-created 2 Create a Firebase iOS App > iOS key auto-created 3 Create a Firebase Android App > Android key auto-created More ...
Be sure your Firebase project is still selected. Click Create credentials > API key. Take note of the new API key, then click Restrict key. In the API restrictions section, select Restrict key, then add to the list only the Super Service API. This new API key grants access only to the Super Service API.
It's very rare, but sometimes an app must be able to select its Firebase project at runtime. This means your app can't use the automatic init provided by the FirebaseInitProvider that's merged into your app. In that case, the solution has two tasks. 1. Disabling FirebaseInitProvider
Disabling FirebaseInitProvider FirebaseInitProvider is normally automatically merged into your app build by the Android build tools when doing a build with Gradle. If you're doing your own init, however, you'll to make sure it doesn't get merged at all. The way to do that is to use your own app's manifest to override that behavior.
When Git Bash let me down:
CMD did the job:
I encountered the same issue. Downgrading firebase-tools version to 6.0.0 worked for me. Currently, the latest version is 7.0.0.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With