New project not showing on firebase CLI

Max S. picture Max S. · Nov 19, 2018 · Viewed 8.3k times · Source

I have recently had an issue with my firebase account where any new projects don't show in the CLI when I run firebase init. I deleted a project I didn't need, and that updated immediately, any help is greatly appreciated!

Answer

Geofrey Ssekirime picture Geofrey Ssekirime · Dec 27, 2018

There is a simpler solution, first, determine your projectId from the Firebase Console. Firebase usually adds a random number to your project's name i.e if you are using demo as the project name the projectId will look like demo-1234

Next, in your terminal, cd into your project's target directory and issue the followoing command

firebase -P <projectId> init

assuming demo-1234 was my projectId, I will issue the command as below

firebase -P demo-1234 init