Search code examples
firebasefirebase-hostingfirebase-cli

New project not showing on firebase CLI


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!


Solution

  • 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