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
6
votes
0 answers

Is there a way to output a firebase function console.log to a local command line

I am using Firebase as the database, auth, and hosting backend for my React webapp. I have started to incorporate functions for some of the backend database processing. It's a perfect way to automate some things and write less code. I have written…
6
votes
4 answers

firestore emulator has exited upon receiving signal: SIGINT

I'm running firebase emulators:start and getting firestore emulator has exited upon receiving signal: SIGINT edited As Clarity suggested in the comments section firestore-debug.log
6
votes
1 answer

Firestore local http with real db: The Cloud Firestore emulator is not running so database operations will fail with a 'default credentials' error

I want to run a firebase http cloud function locally accessing a real remote firestore database. To do it, I'm running my functions locally using: FIREBASE_CONFIG="/path-to-credential.json" GOOGLE_APPLICATION_CREDENTIALS="/path-to-credential.json"…
6
votes
1 answer

Running Firebase Emulator on GitLab CI

I'm trying to test Firestore's security rules on my GitLab CI pipeline. I need to run Firebase's emulator to accomplish that. However, the Firebase emulator basically starts serving a "fake backend". So, how can I run that job in parallel to other…
6
votes
1 answer

Im having trouble while serving or deploying Firebase Hosting Functions

The Cloud Functions emulator requires the module "firebase-admin" to be installed. This package is in your package.json, but it's not available. You probably need to run "npm install" in your functions directory. I was running well my…
6
votes
1 answer

firebase_tools not found when trying to remove firestore collection from cloud functions

I am trying to remove a collection using callable firebase function. I took a sample code from here. The sample code has a "firebase_tools" element. return firebase_tools.firestore .delete(path, { project:…
6
votes
4 answers

unable to install firebase tools cli using windows 10

Hi i unable to install the firebase tools via commandline in the windows im using this below command npm install -g firebase-tools after entering this command i m getting this below error npm ERR! path…
Shyam Nair
  • 149
  • 10
  • 24
6
votes
1 answer

'Firebase init' command didn't create package.json, index.js and function folder

I’m now trying to create a tutorial app for my Google Home but I faced some trouble. According to this tutorial, I finished following steps of Build fulfillment. 1.Download and install Node.js. 2.npm install -g firebase-tools 3.firebase…
popo
  • 63
  • 1
  • 4
6
votes
1 answer

Error when trying to install firebase with NPM

I am trying to (re)install Firebase, however, when I run sudo npm install -g firebase-tools the following error shows up: I have no idea what is wrong, it used to work well a few month ago.
mat
  • 2,412
  • 5
  • 31
  • 69
6
votes
3 answers

Set Firebase init Directory for cloud functions

I'm trying to set up Firebase cloud functions, but when I input firebase init into terminal, it says: You're about to initialize a Firebase project in this directory: /Users/username`. How do I save the folder in my projects directory? I tried...…
nachshon f
  • 3,540
  • 7
  • 35
  • 67
6
votes
4 answers

firebase init command failing to execute

Can someone help me to solve this error I cannot run firebase init command before running firebase deploy. Error: Authentication Error: Your credentials are no longer valid. Please run firebase login --reauth For CI servers and headless…
6
votes
1 answer

Firebase CLI is not authenticating because Google account is not retaining authorization

I just downloaded the Firebase CLI (through firebase-tools NPM module) and I'm trying to firebase login. Each time I'm redirected to my browser where I give the Firebase CLI app permissions to my account and I keep getting a screen saying "Firebase…
goodman
  • 547
  • 6
  • 12
6
votes
3 answers

Is there a way to monitor changes like "nodemon" for Firebase command line?

Is there any way to get the Firebase command line to simply refresh the server as I am applying changes to code similar to what nodemon does for nodeJS? I'm working with Polymer for web.
TheBen
  • 3,410
  • 3
  • 26
  • 51
6
votes
2 answers

How to fetch updates for Firebase project using CLI tools?

I've set up Firebase command line tools. I've uploaded my files to Firebase Hosting. All is okay. After this I changed Database rules via console in browser. The question is: how to fetch (download) Firebase's files from server to my local…
Oleksii K.
  • 5,359
  • 6
  • 44
  • 72
6
votes
3 answers

-bash: firebase: command not found

I need to host website to google firebase hosting. I looked almost everywhere but steel have the problem. I have installed npm install --global firebase also npm install -g firebase-tools but when I want to use firebase command it says : "command…
user6698888