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
8
votes
3 answers

Why don't I see data in the Firebase Cloud Firestore Emulator UI?

I have some tests for security rules and they prime up a dataset to the local Firestore emulator (using the @firebase/testing library, pretty much as described here). The tests mostly work, so I think the data really gets to Firestore. But I cannot…
akauppi
  • 17,018
  • 15
  • 95
  • 120
8
votes
2 answers

How to enable email and password signin provider for new firebase project using gcloud console or firebase tools CLI?

In the company I am working for, we provide a solution for other companies, and we want each company to have a separate instance of that solution, this includes a separate database instance, the database is Firebase, this choice of creating a new…
Dhia Hassen
  • 508
  • 4
  • 20
8
votes
4 answers

Run firebase emulators on github actions

I'm trying to run my test on Github Actinos but after several attempts I was not able to do so. Receiving Error: firestore: Firestore Emulator has exited because java is not installed, you can install it from https://openjdk.java.net/install/ …
8
votes
4 answers

Cloud Functions Firebase CLI predeploy error (typescript)

I´m trying Cloud Functions with typescript. After successfully installed, added a trigger and tested deploy. index.ts import * as functions from 'firebase-functions'; export const createAccount = functions.auth.user().onCreate(event => { const…
guillefd
  • 1,903
  • 1
  • 16
  • 26
7
votes
0 answers

Connect Android app to Firebase Auth emulator without allowing cleartext HTTP traffic

I have a Flutter application that uses Firebase as its back-end. I use Firebase emulators to test my app in debug mode. In order to allow physical devices to connect to the emulators I run on my development machine, I've changed the configuration so…
Anakhand
  • 2,838
  • 1
  • 22
  • 50
7
votes
1 answer

How to connect Firebase Admin to Emulator Auth

I am struggling to connect to the emulated Firebase Auth service via the Firebase Admin SDK. I cut down the code to really make the problem stand out, and hope someone can help. This is the code of the test.js I run (in NodeJS): // Someone said…
7
votes
2 answers

Where does React put the continuous build files when using create-react-app

I'm using create-react-app. When I run npm start (react-scripts start) it continuously builds the changes for me and does it magic. But what is the output folder for that? I know when I build it manually where the files go. I want to use firebase…
Badr Hari
  • 8,114
  • 18
  • 67
  • 100
7
votes
3 answers

Firebase CLI commands printing unexpected malicious looking response on Linux, The text has infinite number of word: 'testing'

I am using Ubuntu. I have recently installed firebase-tools using npm with the command as officially stated: npm install -g firebase-tools Also later unaware, installed another package locally in my project called firebase. Using the command: npm…
Kartik Arora
  • 958
  • 1
  • 10
  • 17
7
votes
4 answers

Firebase Firestore Emulator UI is not showing any data, but data is being returned in app query

I am facing an odd issue with firebase's firestore emulator. When i start the emulator, and check the emulator's firestore UI, it shows that no data exists in the db yet. Then, i try query the firestore emulator for data from my react-native app and…
7
votes
1 answer

How do I use the local Firebase Auth emulator and not production auth to test my users?

My app still expects to validate users with the production firebase-auth instance, despite having initialised the auth emulator locally with: firebase init emulators This is the auth logic in my React app: const handleLogin = () => …
Stephanos
  • 501
  • 6
  • 15
7
votes
3 answers

How to shutdown Firebase Emulator properly on Windows 10

When the firebase emulator:start is ran in my vscode powershell terminal, some java.exe windows pop open. Everything works great. When I go to close the firebase emulator, using the ctrl+c command, there are logs in the terminal suggesting that…
Samuel Charpentier
  • 599
  • 1
  • 7
  • 28
7
votes
0 answers

Autmatically signed out on page refresh with Firebase Emulator

I am using @angular/fire in my project to use firebase. To test the integration with firebase services I run firebase emulators: start in the command line. While serving the angular application with ng serve --open whenever I make changes and save…
7
votes
0 answers

Using Firebase's reserved hosted URLs for local flutter development

I'm developing an app in flutter and deploying it to Firebase hosting. Firebase hosting and the firebase serve command for local development let you initialize Firebase from a special auto-generated relative URL (/__/firebase/init.js). This is nice…
tangentstorm
  • 7,183
  • 2
  • 29
  • 38
7
votes
2 answers

`firebase deploy` with CLI tools 3.17.0 gives "Error: Firebase config variables are not available"

Full error dump: Error: Error occurred while parsing your function triggers. Please ensure you have the latest firebase-functions SDK by running "npm i --save firebase-functions@latest" inside your functions folder. Error: Firebase config variables…
Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
7
votes
2 answers

Using firebase-tools as a node module and for deploying only rules

I'm trying to clean up my build system and I'd like to use the firebase-tools (Firebase-hosted docs) module in doing so. Documentation for using the package in the CLI is fine enough, but the documentation for using it as a node module is sparse…
MandM
  • 3,293
  • 4
  • 34
  • 56