Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

new project not showing up Firebase CLI

Was recently added to a new firebase project via the web interface but it isn't showing up in firebase list. I can see the project in my firebase console. I've tried restarting my terminal, logging out/in, and doing firebase use, but no avail.

Any ideas?

Thanks.

like image 344
qunayu Avatar asked May 16 '18 22:05

qunayu


People also ask

How do I change the default project in firebase CLI?

In the directory where you run firebase list , there will be a file called firebase. json . If you open that in a text editor, you will see the app name in there. You can change it there or delete firebase.


2 Answers

firebase-init first asks which features you wish to use, e.g. database, firestore, storage, etc.

If you choose firestore but have not yet enabled Firestore in your newly created Firebase project via firebase.google.com website, that project will not show up as a project option.

So, before running firebase-cli, enable all the features you want via the website first, ...before chosing those features in step 1 of firebase init.

Once you've enabled Firestore, for example, your project will now show up.

like image 191
Ronnie Royston Avatar answered Oct 19 '22 17:10

Ronnie Royston


You can select your project if you know the project id:

firebase use --add

That will select the project, so when you type "firebase init" will not show the select project option but take you to the next step

like image 32
Juan Sánchez Avatar answered Oct 19 '22 16:10

Juan Sánchez