Questions tagged [firebase-tools]

The Firebase CLI provide a variety of tools for managing, viewing, and deploying Firebase projects, as well as a set of emulators for Firebase products. It's available via the npm module firebase-tools.

The Firebase Command Line (CLI) Tools can be used to:

  • Administer your Firebase account

  • Interact with Firebase Hosting, our product to host your static HTML, JS, CSS, images, etc.

  • Interact with the Firebase Database, to read and write JSON data and deploy security rules

  • Interact with Firebase Storage, to read and write files and deploy security rules

  • Deploy your code to Cloud Functions for Firebase

  • Emulate Cloud Functions, Realtime Database, and Cloud Firestore locally for use in development and testing.

See also:

Related tags

903 questions
4
votes
2 answers

Firebase Emulator slow when using 0.0.0.0 host

I’m having an issue setting up the Firebase Emulator on a Mac Mini with Apple Silicon (M1 chip). Every request I send to Firestore (using the emulator) takes a very long time to complete (sometimes it never completes and I get a network error saying…
Will
  • 2,523
  • 1
  • 13
  • 21
4
votes
1 answer

Firebase emulators: auth data is not exported/imported?

I use Firebase emulators with the auth emulator (very happy with this new feature!) I signup a user using email and password -> I can see it created in the emulator UI. I insert some data in Firestore -> it works equally well. I export the…
Louis Coulet
  • 3,663
  • 1
  • 21
  • 39
4
votes
0 answers

Firebase Emulator logs are poorly formatted

so I was trying to log objects and errors in the in the firebase emulator locally in my visual studio code terminal. try { // send request } catch (error) { logger.log('----'); logger.error(error); } Problem is that the message is…
JKalthoefer
  • 121
  • 1
  • 9
4
votes
3 answers

How to use firestore emulator with reactfire?

I have set up firestore locally following the firebase docs and I can test firebase functions easily. I would love to develop locally with an local firestore database. In the docs they provide the following code: // Initialize your Web app as…
Marian Rick
  • 3,350
  • 4
  • 31
  • 67
4
votes
2 answers

Can you run /host firebase emulator that is accessible from public ip?

I am using the firebase emulator to host some GCF functions on my machine. They are configured to run/host on localhost:5001. This works great. I am now using Google Tasks in my app, and the task I have needs to call a GCF function. Tasks does not…
4
votes
3 answers

The Cloud Firestore emulator is not running, so calls to Firestore will affect production

I was learning firebase to integrate with my react web app. I was trying to write functions for GET and POST requests and running them on postman using endpoints i get in my terminal in vscode. Now my code works perfectly with firebase deploy but…
4
votes
2 answers

Getting TypeError: Cannot convert object to primitive value when running firebase emulators:start

Just updated firebase-tools to 8.4.0 and now getting the following error when running firebase emulators:start: ⚠ TypeError: Cannot convert object to primitive value at Proxy.…
user2521295
  • 823
  • 2
  • 12
  • 23
4
votes
1 answer

How to make the Firebase functions emulator trigger based on a database emulator update

In short, I want to test a Firebase function locally, specifically one that is triggered from a realtime database trigger. According to the docs for local testing, it seems that there are two ways of accomplishing local testing of Firebase…
4
votes
1 answer

CLI question: "The following functions are found in your project but do not exist in your local source code" - how to default answer No?

Everytime I deploy a function, I have the annoyance that I need to answer the question: The following functions are found in your project but do not exist in your local source code with "No". I have the following structure of my functions. I have…
4
votes
2 answers

"firebase serve --only functions" doesn't work

$ firebase serve --only functions ⚠ Your requested "node" version "8" doesn't match your global version "12" Error: TIMEOUT: Port 5000 was not active within 30000ms but when serve hosting will success $ firebase serve --only hosting i hosting:…
yhirochick
  • 93
  • 1
  • 11
4
votes
4 answers

Firebase command not found days after having already successfully used it

I am trying to use the 'firebase' command from my Mac terminal to deploy firebase cloud functions using 'firebase deploy --only functions'. I just used this command a week or two ago when I updated my firebase-functions and firebase-tools to version…
MikeG
  • 3,745
  • 1
  • 29
  • 51
4
votes
6 answers

firebase CLI will not recognize current directory for 'firebase init'

I am following a tutorial on Ionic Angular and it has come to the point where the instructor is having me publish my code to Firebase Hosting. First I used NPM to install the Firebase CLI. Then I was instructed to use the firebase init command. The…
WillD
  • 5,170
  • 6
  • 27
  • 56
4
votes
1 answer

What IAM roles are needed for deploying to Firebase Hosting?

I am trying to give permissions to a third party to make deployments to Firebase Hosting on a project I have set up. I explored the IAM permissions available in the GCP console, and the only half-related role seems to be the Firebase Rules System,…
4
votes
1 answer

Who can read config values set by functions:config:set command?

I'm working on the implementation of some Cloud Functions for Firebase and one of these require some configuration to call external providers. I was able to successfully configure these values using firebase functions:config:set key="value" but I…
martosoler
  • 423
  • 1
  • 5
  • 10
4
votes
1 answer

Cannot upgrade firebase-tools because dependency iltorb npm package fails to install

I'm running Ubuntu 17.04 node version: 8.0.0 npm version: 5.3.0 node-gyp version: 3.6.2 csaba@titan:~/GitRepos/valleydevfest2017$ sudo npm install -g iltorb > iltorb@1.3.5 install /usr/local/lib/node_modules/iltorb > node-pre-gyp install…
Csaba Toth
  • 10,021
  • 5
  • 75
  • 121