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
13
votes
1 answer

How to set storage rules so I can run my Firebase storage emulator?

When I run firebase emulators:start I have this error Error: Cannot start the Storage emulator without rules file specified In firebase.json Before installing Storage emulator, I can set the rule for Firestore like this { "firestore": { …
13
votes
4 answers

Firebase functions : Cannot set property config of # which has only a getter
Firebase functions was working fine I updated to latest firebase-tools Now running into this error issue when running firebase serve. [debug] [2020-05-28T20:37:11.387Z] [runtime-status] [93658] Error in handleMessage: => TypeError: Cannot set…
arjuns
  • 359
  • 3
  • 7
13
votes
3 answers

Firebase deploy, ignore all files but public folder

I am trying to clean up my deployment process to Firebase, and need to ignore all files besides my /dist aka public folder when deploying files to the hosting. I believe it can be done via ignore setting in firebase.json, but I am not sure how to…
Ilja
  • 44,142
  • 92
  • 275
  • 498
12
votes
3 answers

Firebase Emulator --export-on-exit not working properly (Windows 10)

I have been experimenting with using Firebase emulators to decrease the number of reads/writes against my actual Firestore db while I am developing a web app. More specifically, I would like to create some re-useable test data from the Emulator UI…
Drew Daniels
  • 314
  • 4
  • 16
12
votes
0 answers

firebase emulators:start complains on missing Java though installed

I'm trying to make use of the firebase emulators, however after trying to start it (using "firebase emulators:start") I always get: i emulators: Starting emulators: auth, functions, firestore, hosting ⚠ functions: The following emulators are not…
12
votes
1 answer

Firebase cloud function local code changes are not reflected in emulators

I am trying to develop API for my apps using Firebase cloud functions. Following this site to use the firebase emulator suite for development and testing locally. Issue: The changes are not reflected in the locally emulated…
Abhimanyu
  • 11,351
  • 7
  • 51
  • 121
12
votes
3 answers

Could not find a declaration file for module 'firebase-tools'

I am writing my first cloud function for Firebase and it requires the firebase-tools module. I've installing it by adding it to my dependencies in the package.json file and running npm install. Then I tried to import it using import * as tools from…
12
votes
4 answers

Delete all firebase functions

I have a firebase project with multiple functions deployed. Is it possible to remove all the functions in a single go through the CLI? I tried the command firebase functions:delete --region us-central1 and the error output was Error: Must supply at…
12
votes
7 answers

Getting 'Cannot GET /' when trying to connect to localhost:5000 Firebase

I am trying to get my localhost server on Firebase to work but I am continuing to get the following message in the browser 'Cannot GET /'. I took a look in the console and all it says is 'http://localhost:5000/ 404 (Not Found)'. I have tried…
sinake
  • 149
  • 1
  • 1
  • 7
12
votes
12 answers

firebase-tools error: EACCES: permission denied

I am trying to deploy Firebase hosting of my web app. At the command line, when I type firebase deploy, I get the following error. Note: firebase deploy is just one example. The same error occurs for all firebase commands. (e.g., firebase --help,…
Let Me Tink About It
  • 15,156
  • 21
  • 98
  • 207
11
votes
1 answer

Firebase Auth Emulator email/password Sign In REST endpoint

I'm able to use this endpoint https://identitytoolkit.googleapis.com/v1/accounts:signInWithPassword?key=[API-KEY] (found in these docs @ section Sign In With Email / Password) to sign in a Firebase Authentication user via an HTTP request. Is there…
MikeG
  • 3,745
  • 1
  • 29
  • 51
11
votes
1 answer

How do I wire up the firestore emulator with my firebase functions tests?

Currently we are using 'firebase-functions-test' in online mode to test our firebase functions (as described here https://firebase.google.com/docs/functions/unit-testing), which we setup like so: //setupTests.ts import * as admin from…
11
votes
7 answers

Firebase Error: Authentication required with firebase-tools

I've just installed the firebase-tools with the as usual npm package installation process : npm install -g firebase-tools i've already created a Firebase account connect with Google Account, but the problem is that the only procedure i can made…
cicciosgamino
  • 871
  • 3
  • 10
  • 29
10
votes
2 answers

Cannot delete files from firebase collection

I am following the example listed here, except with modifications due to the API of the new firebase-tools. exports.clearMessages = functions.runWith({ timeoutSeconds: 540, memory: '2GB' }).https.onCall(messagesController.clearMessages) export…
TIMEX
  • 259,804
  • 351
  • 777
  • 1,080
10
votes
4 answers

How to configure timeout of Firebase functions on local

I want to do some intense job on firebase functions and it usually takes more than 60 seconds. On production, I can set timeout longer from web console but I cannot find setting for local environment. Following is the command which I'm using to…
kasahara Seiji
  • 145
  • 3
  • 7