Firebase CLI: How to Change Project

Last updated on December 17, 2022 Pennywise Loading... One comment

When working with Firebase CLI, you can switch between projects by using the firebase use command, like this:

firebase use [project id]

To see the ids of your Firebase projects, execute the following command:

firebase projects:list

You’ll get results like this:

✔ Preparing the list of your Firebase projects

┌──────────────────────┬─────────────────┬────────────────┬───────────────
│ Project Display Name │ Project ID      │ Project Number │  Location ID 
├──────────────────────┼─────────────────┼────────────────┼───────────────
│ KindaCode            │ kindacode-***** │ 10420********  │ us-central           
├──────────────────────┼─────────────────┼────────────────┼───────────────
│ Testing              │ kindacode**     │ 34842*******   │ us-central
└──────────────────────┴─────────────────┴────────────────┴───────────────

2 project(s) total.

That’s it. Further reading:

I have made every effort to ensure that every piece of code in this article works properly, but I may have made some mistakes or omissions. If so, please send me an email to [email protected] or leave a comment to report errors.

Subscribe
Notify of
guest
1 Comment
Inline Feedbacks
View all comments
Aakash
Aakash
6 months ago

Thanks a ton!!!

You May Also Like