Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Arrow keys do not work with firebase init command

Tags:

firebase

$ 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?

like image 247
anand Avatar asked Nov 26 '15 18:11

anand


People also ask

How do I create an API key for my Firebase project?

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 ...

How do I restrict access to Firebase API?

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.

Why can't I select my Firebase project at runtime?

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

How do I disable 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.


2 Answers

When Git Bash let me down:

enter image description here

CMD did the job:

enter image description here

like image 141
Leo Avatar answered Oct 24 '22 07:10

Leo


I encountered the same issue. Downgrading firebase-tools version to 6.0.0 worked for me. Currently, the latest version is 7.0.0.

like image 36
Vijay Vankhede Avatar answered Oct 24 '22 05:10

Vijay Vankhede