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

Firebase Storage in Emulator: refFromUrl() expected a valid full URL

Is it possible refFromURL() is not working in local? function deleteImage(imageUrl: string) { let urlRef = firebase.storage().refFromURL(imageUrl) return urlRef.delete().catch((error) => console.error(error)) } When passing the…
Binajmen
  • 486
  • 2
  • 6
  • 18
3
votes
0 answers

Firebase Emulator Suite Admin SDK & FCM

I have a fairly complex solution built upon Firebase including Firebase Auth, Firestore, Storage, Functions, FCM, and a few Google APIs. (This is a mobile application). A lot of my logic is in Functions, specifically notifications using FCM. I…
Nelson.b.austin
  • 3,080
  • 6
  • 37
  • 63
3
votes
1 answer

How to automatically update the code in firebase cloud functions on local emulator on save with Typescript

I am developing with Firebase Cloud Functions and testing on local emulators. I am using Typescript as my language. However, whenever I update my code and hit save, the changes do not reflect in the emulator. I would always have to stop and re-run…
Ziyad
  • 354
  • 4
  • 13
3
votes
0 answers

"Invalid IdP response/credential" error using signInWithPopup with Google, Facebook, or Twitter providers and Firebase Emulators Suite

My React web app can sign-in using the Google, Facebook & Twitter providers when connecting to production; however, I'm trying to use the Firebase Emulators Suite and upon signing-in using any of the providers, I get an auth/internal-error…
3
votes
1 answer

Flutter firebase connect to emulator from real device

Hi I am currently using firebase's local emulator and flutter. However, I am using a real device and not a simulator therefore I do not know how to connect to my laptops localhost. I am currently using this code // [Firestore | localhost:8080] …
GILO
  • 2,444
  • 21
  • 47
3
votes
0 answers

how to add json data to firestore database?

I am trying to add the json data through the node to firestore database earlier it was working but now it is giving me error. I referred this question on SO to do the same QUESTION below is the json data and the code used to implement the upload…
3
votes
0 answers

Firebase security rules -- test server timestamp

Using @firebase/rules-unit-testing to test firebase security rules, how you test that a document's createdAt field is the current time? This is for Cloud Firestore. Background With firebase security rules, you can make sure a field is saved as the…
Nick
  • 5,108
  • 2
  • 25
  • 58
3
votes
0 answers

react native firebase authentication emulator error message thrown : Error: A network error

I am attempting to use the recently released firebase emulator suite. specifically the authentication emulator. I have the emulator installed and have created an test user in the auth emulator. as follows: Within my code I have: if…
3
votes
1 answer

Can Firebase Emulators be used for integration testing with a React frontend?

I have a simple React frontend application that uses Firebase for Auth and Firestore (https://jlowen-netflix.netlify.app/ if additional context helpful). I provide Firebase as a Context to my top-level application, and listen for a change in Auth…
JLowe-N
  • 43
  • 3
3
votes
1 answer

Connecting to cloud function running on emulator from android emulator in react native

I am building an application and using firebase for the backend. I used react-native-firebase to use firebase in my application. I have developed a login cloud function exports.login = functions.https.onCall((data, context) => { …
3
votes
0 answers

functions: TypeError: Cannot read property 'data' of undefined

I am new with firebase functions and I tried to create push notifications using FCM and firestore triggers, but I am always getting an error. I sent a push notification using https, but never worked using firestore triggers. I tried in many…
3
votes
1 answer

Functions folder is generated in the wrong path when running firebase Deploy -Flutter -Firebase

I'm new using Firebase Functions, I'm trying to set up the functions for Firebase in order to set up notifications for common activities in my app, I'm following the steps suggested by firebase(see below), however the Function folder is generated in…
3
votes
3 answers

How do you deploy to Firebase without Firebase functions?

I experimented with firebase functions for the init part and it has created a folder for me. Now when I deploy each time it also picks up the functions folder. When I remove the functions folder I get an error, when deploying. How do I deploy…
3
votes
2 answers

Firestore emulator displays 'ok'

When I launch firestore with that command: firebase emulators:start I get : There is no mention of firestore GUI, though I have installed the latest firesebase-tools. When I get to the mentionned url : http://localhost:4040/ It only returns "ok"…
Raphael St
  • 661
  • 8
  • 23
3
votes
1 answer

How to make https work and add a self-signed SSL certificate when running firebase function locally?

I'm running a nest api off of a single firebase function and a lot of endpoints throughout my controllers need SSL to work due to OAuth & because they send back a https-only signed cookie. Because of that, I need to be able to run locally served…
SebastianG
  • 8,563
  • 8
  • 47
  • 111