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

Python firebase storage emulator

Hi I was wondering how to connect to my firebase storage emulator, this is how I connect to Firestore. How do I do it with storage Firestore Example: if emulator: os.environ["FIRESTORE_EMULATOR_HOST"] = "0.0.0.0:8080" …
GILO
  • 2,444
  • 21
  • 47
5
votes
1 answer

Firebase auth Emulator fails with IDP

We have an app that is working fine in the Cloud with Google and Github as IDP. When trying to work locally with the Emulator. The call to createSessionCookie fails with: FirebaseAuthError: There is no user record corresponding to the provided…
5
votes
0 answers

Firebase Firestore emulator slow for bulk import

The local Firestore emulator for firebase seems fairly slow when dealing with bulk data. I'm trying to simulate a production batch import of ~5,000,000 documents, but after a few thousand records the server is so overwhelmed it slows to a rate of…
5
votes
1 answer

Firebase emulator leaking when using with Jest

I am using firebase emulators to run my jest tests: package.json: { "scripts": { "test": "firebase emulators:exec --only firestore --project sample jest", }, } jest.config.json: { "preset": "ts-jest", "testEnvironment": "node", …
Rodrigo
  • 135
  • 4
  • 45
  • 107
5
votes
2 answers

Create a user programatically using Firebase Auth emulator

I am trying to write jest tests using the Firebase Auth emulator and continue to receive the following CORS error. console.error Error: Headers X-Client-Version forbidden at dispatchError…
Charklewis
  • 4,427
  • 4
  • 31
  • 69
5
votes
2 answers

Firebase CLI deploy Error: There was an error reading functions/package.json

I recently getting this error when try to deploy the firebase cloud functions using the command firebase deploy --only functions. My package.json file is shown below { "name": "functions", "scripts": { "lint": "tslint --project…
5
votes
3 answers

Firebase Emulator Error: Channel credentials must be a ChannelCredentials object

I am using Firebase Emulators. Until 4 hours ago, everything was working fine. But now, my emulated cloud functions trigger the following error: > Error with Backup TypeError: Channel credentials must be a ChannelCredentials object > at new…
5
votes
0 answers

Firebase CLI giving segmentation fault on Ubuntu

I'm having a hard time with firebase CLI,when I install it with npm, either locally in a projet or globally, and I call the command firebase it gives Segmentation fault with no further details. I firs thought that the problem was with my version of…
Souames
  • 1,115
  • 3
  • 11
  • 22
5
votes
0 answers

Firebase-tools update failing or just reporting wrong version?

I'm trying to update firebase-tools using npm to the latest version (6.7.1). firebase -V keeps reporting the old version (6.4.0) but I am not sure if it's been updated or not. This is in Ubuntu linux Here is what I did in the terminal hili@dev:~$…
Hilikus
  • 9,954
  • 14
  • 65
  • 118
5
votes
1 answer

Is it possible to start firebase serve with --inspect-brk as we did in node?

Firebase serve command helps a lot. But I just wondering is it possible to start in --inspect-brk mode so that I can try to debug into the code locally? If not, how you debug firebase functions? console.log only?
5
votes
1 answer

Firebase CLI: database:set keeps complaining about 'Path must begin with /'

According to the CLI docs and its own help command, I just need to pass it the path (which I assume is the path on the project), my json file, and any options. So this is what I do (while I'm in the folder containing the json data): firebase…
IronWaffleMan
  • 2,513
  • 5
  • 30
  • 59
5
votes
4 answers

"Error: Permission denied" when running firebase init and choosing database

So I’m testing out the CLI today and firebase init with db/hosting selected, and choosing to create a new project, always says Error: Permission denied.. sudo firebase init didn’t help. firebase-tools version 3.0.3 on OS X 10.11.5. firebase…
Splaktar
  • 5,506
  • 5
  • 43
  • 74
4
votes
0 answers

Firebase sd_setImage crash when using emulator

My code is trying to use sd_setImage to load an image stored in a Firebase Storage. I'm using the Firebase Emulator and have loaded some images in a folder in the emulator under, well, "images". I've attempted this both in my own app and in the…
Janene Pappas
  • 1,366
  • 12
  • 26
4
votes
1 answer

Not able to run firebase stripe/firestore-stripe-payments extension in emulator locally for a web application

I tried to install Run Payments with Stripe extension (https://firebase.google.com/products/extensions/stripe-firestore-stripe-payments) from firebase for the project mySampleProject in my local emulator, but it's not showing in the emulator list. I…
4
votes
0 answers

React Native Firebase problem with emulator on physical device

I am programming an app with React Native. To use Firebase in this app, I installed the React Native Firebase npm package. I have set up everything to make requests to Firebase functions and this works smoothly. I am currently trying to set up the…