How do I change the Firebase project in my cli?
When I run firebase init
, it says:
Before we get started, keep in mind:
* You are initializing in an existing Firebase project directory
? Are you ready to proceed? (Y/n)
It never asks on which project do I need to upload. How can I link my other project?
The Firebase CLI will look in the current directory and all parent directories for a file called .firebaserc
that defines which project is being used in this directory structure. If you run firebase init
and encounter the message "You are initializing in an existing Firebase project directory", that means one of these .firebaserc
files was found, and it's going to re-initialize this project.
If you no longer want the original project, just delete the .firebaserc
file. Or, find another directory to run firebase init
that isn't within another project's space.
You could use firebase init
with flag --project <projectId>
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