How to switch between two firebase projects in cloud functions?

12,941

Please read the documentation for the Firebase CLI. In particular, you'll want to learn about the firebase use command to create aliases for your projects and switch between them for deployment.

Share:
12,941
Alexander Khitev
Author by

Alexander Khitev

Updated on June 05, 2022

Comments

  • Alexander Khitev
    Alexander Khitev almost 2 years

    I have two Firebase projects one for the development of another for production. How do I switch between them in the root branch with cloud functions? Since for example I'm developing a new function and I want to do deploy only on the firebase development project and check how it works before doing deploy in the firebase production project.

  • Alexander Khitev
    Alexander Khitev almost 7 years
    Yes, sorry, did not write an answer to this, yes I already read it there, also found the information here stackoverflow.com/questions/36432458/…
  • Alam
    Alam almost 2 years
    firebase use --add