Home > Blockchain >  Where should I run firebase init and what is a source control root in a Cloud Functions project?
Where should I run firebase init and what is a source control root in a Cloud Functions project?

Time:11-26

I'm adding a custom authentication system to my app using Firebase CLI. This is where I'm at:

Initialize a Firebase project

Many common tasks performed using the CLI, such as deploying to a Firebase project, require a project directory. You establish a project directory using the firebase init command. A project directory is usually the same directory as your source control root, and after running firebase init, the directory contains a firebase.json configuration file.

To initialize a new Firebase project, run the following command from within your app's directory:

firebase init

Firebase CLI reference

I tried googling "initialize firebase source control root directory" and "source control root directory meaning" and got mixed results. The first search results tell you that you should run firebase init in the same directory as your source control root but not what it actually is. The second results tell you what a root directory is in linux, what goes in source control and something about Git. I'm more confused after doing research than before.

Where should I run firebase init?

Is it /home/user/AndroidStudioProjects/project/

/project/app/

/project/app/src/

or none of the above?

Thank you.

CodePudding user response:

You only need to run the firebase init command in the Firebase CLI, if you intend to use other commands (such as firebase deploy) in the CLI too.

If you're only building an Android app with Firebase and not using other services that require the CLI (such as Firebase Hosting or Cloud Functions), it is unlikely that you ened to run firebase init.

  • Related