New project not showing on firebase CLI

11,322

Solution 1

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

Solution 2

Use firebase use --add projectId, this will add your project

Solution 3

Yea this is a weird one.

Use the [don't setup a default project] option

then, as mentioned by @Dragon, use firebase use --add projectId to add the project

Solution 4

I did

firebase logout

then

firebase login

It works for me

Share:
11,322
Max S.
Author by

Max S.

Updated on June 06, 2022

Comments

  • Max S.
    Max S. about 2 years

    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!