Questions tagged [firebase-cli]

The Firebase CLI provide a variety of tools for managing, viewing, and deploying to Firebase projects, as well as a set of emulators for Firebase products. It's available via the npm module firebase-tools.

These are the Firebase Command Line (CLI) Tools. They 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 Cloud Functions for Firebase code

  • Emulate Cloud Functions and Cloud Firestore locally for use in development and testing.

See also:

Related tags

814 questions
5
votes
1 answer

Firebase Hosting deploy only to sub directory

I'd like to know that can "Firebase deploy" make update only for the sub directory inside root? my structure /public (index.html,other 100+ files) /public/data (require.json) ::only 1 file The problem is I need to update(deploy) only 1 file,…
Leonar Aung
  • 149
  • 1
  • 8
5
votes
1 answer

Cloud Function deploy function to selected project

I read the Cloud Fucntions docs and successfully deployed and it's working great. In my Firebase I have two projects, debug and production and they have different package names. I can't find out how to deploy the function to my production project…
Tord Larsen
  • 2,670
  • 8
  • 33
  • 76
5
votes
1 answer

Firebase import db without triggering functions

We are running Firebase with multiple environments/stages. To test migrations, we are constantly rolling back, importing a database state through the CLI. The problem is: Our functions are triggered as well. In that scenario, we just want to alter…
5
votes
6 answers

firebase-tools fails to load via terminal install on macOS

Trying to install firebase-tool for CLI. Getting failures. running on macOS I have seen suggestions like the following ... Troubling with installing firebase-tools I tried $ sudo npm install -g firebase-tools Using 'sudo' gets past the error issues…
john
  • 505
  • 1
  • 7
  • 15
4
votes
2 answers

Firebase functions deploy problem (Failed to create/update function)

I would like to ask for the help of people familiar with Firebase functions. I am struggling with the problem that uploading the code via firebase cli fails. It was working a few days ago, I didn't change anything in the world, I mean through the…
4
votes
2 answers

I can't use request in firebase emulator

Request function isn't working in my firebase emulator and My Firebase CLI version is 11.13.0 that is latest version. But the screen shot is 'Please update your Firestore Emulator. This feature requires the latest Firestore Emulator. Please upgrade…
iwasaki
  • 71
  • 4
4
votes
2 answers

How to uninstall Firebase functions emulator after installing it with "firebase init"

I installed the Firebase Functions and Firestore emulators in my project with firebase init > emulators but now realize I don't need the Functions emulator any more so I'm trying to delete it. How can I uninstall an emulator so that the firebase…
geg
  • 4,399
  • 4
  • 34
  • 35
4
votes
0 answers

Firebase Authentication Unit Testing via emulators with Angular

I've been trying to unit test every testable piece of code in my projects and I recently found that Firebase has added Authentication as part of their emulation suite. I'm working on an Angular/Nativescript project right now and I'm running my…
4
votes
1 answer

How can I deploy firebase functions through github actions?

In my project, which has a folder structure as shown here: dev-internal-web -.firebase -.github -e2e -functions -node_modules -src (misc files) I have a functions folder, which houses firebase functions. I'm looking to automate deployment of that…
4
votes
1 answer

Is there a way to add/modify functions to a running firebase emulator?

I am using a firebase emulator to develop and test cloud functions. Every time I modify an existing function or when I want to add a new function, I essentially shut down the emulator, deploy the functions, and then restart the emulator. In this…
4
votes
0 answers

How to stop sending requests to Firebase Emulators?

My Project: Google Cloud Functions sends a SOAP request to a 3rd party API, using a Scheduled Function (Pubsub + Cloud Scheduler), parses, sanitizes and stores the response in Firestore. It's authenticated with a Service Account. What's Wrong: It's…
4
votes
1 answer

Firebase Firestore works with real database but not emulator

I'm using Firebase and have started trying to run a local development instance using the Firebase Emulators. I'm running v8.4.1 of Firebase Tools. When I'm running with the real Firestore database everything works fine. However there is something…
4
votes
1 answer

Update of Firebase CLI to 8.4.0 gives errors about "Unsupported engine" saying '{"node":">=10"}'

After upgrading to 8.4.0 with npm i -g firebase-tools, the following is shown: npm WARN notsup Unsupported engine for google-auth-library@6.0.0: wanted: {"node":">=10"} (current: {"node":"8.16.2","npm":"6.14.5"}) npm WARN notsup Not compatible with…
Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
4
votes
1 answer

connecting to firestore emulator with @firebase/testing

I am trying to test a firebase app locally. I am running the test with firebase emulators:exec --only firestore 'mocha -r ts-node/register src/**/*.spec.ts In my spec, I import @firebase/testing and setup my app and followed the directions from…
pedalpete
  • 21,076
  • 45
  • 128
  • 239
4
votes
1 answer

Firebase deploy in Github Actions gives Authorization failed error

I'm trying to automate the deployment of a react app to firebase with github actions but i'm getting the following error: Error: Autorization failed. This account is missing the following required permissions on project *** firebase.projects.get …
Merha
  • 81
  • 1
  • 10