I'm following this Firebase intro tutorial:
https://codelabs.developers.google.com/codelabs/firebase-web/
I follow the instructions and when I get to step 3, I run firebase use --add
and I get the following:
# firebase use --add
> [email protected] firebase ~/repos/friendlychat/web-start
> firebase "use"
No project is currently active.
Run firebase use --add to define a new project alias.
But if I run firebase list
I see this:
┌──────────────┬───────────────────────┬─────────────┐
│ Name │ Project ID / Instance │ Permissions │
├──────────────┼───────────────────────┼─────────────┤
│ FriendlyChat │ friendlychat-x3sd0 │ Owner │
└──────────────┴───────────────────────┴─────────────┘
So I am clearly logged in correctly as I can list my projects and have some sort of access to them on the CLI. But does the error mean it's not active? How do I activate it? There is nothing in the tutorial about this.
What am I missing here? Seems like it's something obvious that I'm just not seeing.
The Firebase CLI is a utility used to administer Firebase projects and perform tasks such as Realtime Database management tasks from the command-line of a terminal or command-prompt window. The Firebase CLI is also the method by which Firebase Cloud Functions are deployed and managed.
firebaserc is environment/machine specific, and thus should not be committed to the repository.
Show activity on this post. Then in the list of projects, select your project. And then finally for the alias name enter default (or whatever you entered before). For a full list of the commands, have a look at the reference documentation of the Firebase CLI.
To active a Firebase project, you can run command firebase use <project-id>
, in your case it would be firebase use friendlychat-x3sd0
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With