question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firebase init documentation

See original GitHub issue

[REQUIRED] Environment info

firebase-tools: 7.7.0

Platform: All

[REQUIRED] Test case

[REQUIRED] Steps to reproduce

firebase init --help

[REQUIRED] Expected behavior

Any kind of documentation

[REQUIRED] Actual behavior

$ firebase init --help
Usage: init [options] [feature]

setup a Firebase project in the current directory

Options:
  -h, --help  output usage information

Guys, is there any documentation for this, please? Official page https://github.com/firebase/firebase-tools#configuration-commands suggets to use --help parameter, but outpu is useless.

Thanks for help

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

7reactions
tomashejatkocommented, Dec 2, 2019

Hello, we want to use firebase init as part of automatization. We know it can’t be run with SA, so always human will run, but still we want have script that will always produce same results.

What we now need is to be able :

  • Turn on Firestore by parameter
  • Turn on Functions by parameter
  • Ideally do not run any “wizard parts”

Plus we need to know how to setup default location (https://firebase.google.com/docs/projects/locations), otherwise firebase init always fail for us with : Error: Cloud resource location is not set for this project but the operation you are attempting to perform in Cloud Firestore requires it. Please see this documentation for more details: https://firebase.google.com/docs/projects/locations

Thanks for your help!

0reactions
samtsterncommented, Jun 23, 2020

@gautamsingal the documentation would go here: https://github.com/firebase/firebase-tools/blob/master/src/commands/init.js#L26

Some things you might want to mention:

  • The firebase init command is an interactive setup command to build your firebase.json file and bootstrap Firebase services.
  • You can use firebase init to add a new Firebase product to your project even if you have already run init before. For example you could run firebase init hosting on a project that is already using Cloud Functions.
  • You can initialize a single feature by running something like firebase init firestore
Read more comments on GitHub >

github_iconTop Results From Across the Web

Firebase CLI reference
Documentation · Reference More. Overview Fundamentals · Add Firebase - Apple platforms (iOS+) · Add Firebase - Android · Add Firebase - Web....
Read more >
The Firebase Command Line Tools
The Firebase Command Line Interface (CLI) Tools can be used to test, manage, and deploy your Firebase project from the command line. Deploy...
Read more >
Firebase - Deploying
Step 1 - Install Firebase Tools. We need to install firebase tools globally in the command prompt window. npm install -g firebase-tools ·...
Read more >
firebase init
firebase init. Setup a Firebase project in the current directory. Options. Name, Description. -h, --help, Output usage information. On this page. Options ...
Read more >
Common Firebase CLI Commands - A Complete Guide to ...
init. This initializes Firebase and sets up a new Firebase project in the directory. It can be used to initialize specific features when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found