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

Gcloud Firestore emulators lost the data when restart

I'm using firestore emulator for my python project. I start it using this command. gcloud beta emulators firestore start --host-port=localhost:8080 After saving docs and doing other stuff if I close the firestore and run it again it will…
Azeem Haider
  • 263
  • 4
  • 13
3
votes
2 answers

Problem running JS file with firebase emulators: exec

I was trying out the new Firebase Emulators UI announced on May 21, 2020. In the Firebase Docs, I noticed that there is a CLI command that allows us to run a script file: firebase emulators:exec scriptpath Run the script at scriptpath after…
Antonio Ooi
  • 1,601
  • 1
  • 18
  • 32
3
votes
2 answers

Firestore document not found when using Firebase-Admin running on Firestore Emulator

When I use firebase.firestore() on client-side, the following function works well and managed to find the document: With firebase.firestore() function getUserProfile(email, returnDoc) { var db = firebase.firestore(); var docRef =…
Antonio Ooi
  • 1,601
  • 1
  • 18
  • 32
3
votes
0 answers

How to write to firestore emulator from a web application?

I'm trying to debug my cloud firestore triggers locally using a firestore emulator. I have imported all of my data to the emulator (production data) This is my web application config file (Client side): import firebase from 'firebase/app'; import…
Adi Azarya
  • 4,015
  • 3
  • 18
  • 26
3
votes
1 answer

How do you output the Firestore config via cli

How do I output the config of a firebase project and save it into a .json file via the Firebase CLI? I have a Firebase web project using React and it has both prod and staging environments and I want a way to configure my project automatically so…
3
votes
1 answer

How to deploy cloud functions to different projects inside .firebaserc?

Is there a way to deploy functions to different firebase projects listed inside .firebaserc with a single command? I have this sample .firebaserc { "projects": { "default": "project1", "project2": "project2-abcd" } } When updating…
wobsoriano
  • 12,348
  • 24
  • 92
  • 162
3
votes
0 answers

Firebase-tools: getting a 404 error when trying deploy to firebase through Google Cloud Build with Angular app

I recently watched this video on how to publish an Angular app with firebase-tools project with the help of Google Cloud Build. So the build trigger is working, but it always fails to complete the last step, which is to deploy the project to…
3
votes
3 answers

missing script: build - firebase deploy

When I deployed my firebase function project, this error appeared "missing script:build" and I try to fix it but it fails. Please help me This is error screenshot
3
votes
1 answer

How to solve TypeError: functions.https.onCall is not a function?

I have a Firebase project that I've created earlier this year. It uses Cloud Functions to run some operations on the Realtime Database. Yesterday, I learned about the Callable Cloud Functions, so I decided to try it in my app to see if I should…
3
votes
1 answer

firebase command not found

I am new to firebase and I'm trying to install it on Ubuntu. I've used npm install -g firebase-tools, when I run the command firebase init I get firebase: command not found. I've looked at this post, npm get prefix gives me /usr . So I added…
Chenlin Ye
  • 41
  • 1
  • 4
3
votes
4 answers

unable to install firebase tools in windows

Hi I'm unable to install the firebase tools via command prompt using admin mode and I am getting the error bellow: F:\rnd\MyChat>npm install firebase > grpc@1.8.4 install F:\rnd\MyChat\node_modules\grpc > node-pre-gyp install --fallback-to-build…
Madpop
  • 729
  • 4
  • 24
  • 61
3
votes
1 answer

Is it possible to use the firebase cli without an input file in Windows?

I'm trying to use the firebase cli to upload data to the firebase real-time database. I followed the examples on the firebase blog, but I'm running into a problem. It seems that the Windows version of the firebase cli doesn't allow for data from…
3
votes
1 answer

Deploy stopping on 404 error

I'm having a hard time trying to figure out why the Firebase-CLI is outputting this error whenever I try to deploy: [debug] [2018-01-16T17:05:03.558Z] >>> HTTP REQUEST PUT…
3
votes
3 answers

Deploy a Vue.js App with Firebase Hosting

What is the best Way to deploy a vue.js app initialy created with vue-cli to Firebase Hosting? I prepared the vue-app for deployment with npm run build This creates the folder "dist" with the bundled js-file and assets like pictures. Then- after…
zlit
  • 131
  • 2
  • 6
3
votes
0 answers

error while installing firebase-tools

I am trying to install firebase-tools, but I am getting following error root@dell-Inspiron-3542:/home/dell# npm install -g firebase-tools npm WARN deprecated node-uuid@1.4.8: Use uuid module instead npm WARN optional SKIPPING OPTIONAL DEPENDENCY:…