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
16
votes
4 answers

Error parsing triggers: Cannot find module 'csv-parse/sync'

I am using Firebase functions to build an API that parses CSV files. When I try to use csv-parse/sync instead of csv-parse, my deploy to Firebase Functions fail with the following error: Error: Error parsing triggers: Cannot find module…
Sunkas
  • 9,542
  • 6
  • 62
  • 102
16
votes
2 answers

Firebase deploy returns error at tsc command

I've setup a Firebase project to create some basic Firebase Functions. In the project I'm using TypeScript Following the Firebase official documentation I created my project. The last step, firebase deploy --only functions, gave an error with the…
16
votes
6 answers

Firebase function deploying, but not showing up in console

This question is essentially the same as question 44799104, only that I provide my index.js (and the only answer there was not helpful, as I do include 'exports'). In short, I have deployed my function successfully, but it does not show in the…
16
votes
4 answers

firebase cli serve cant access the project from different device

I have install firebase cli etcetc. I can start the project and develop using firebase serve. I can visit the page of the project through localhost:5000 but if i try from different device in my network (mobile phone) to access network-ip:5000 I get…
iMMuNiTy
  • 476
  • 7
  • 20
15
votes
4 answers

Firebase Firestore emulator error `Host has been set in both settings() and useEmulator(), emulator host will be used`

first of all that is the full error I got. @firebase/firestore: Firestore (8.1.1): Host has been set in both settings() and useEmulator(), emulator host will be used Error [FirebaseError]: Firestore has already been started and its settings can no…
15
votes
4 answers

Firebase deploy - Cannot find module of a local dependency

I've got a submodule named shared which is located next to the backend folder (which is the cloud functions folder): I've added the local dependency shared in backend/package.json like so: "dependencies": { ... "shared":…
Eliya Cohen
  • 10,716
  • 13
  • 59
  • 116
15
votes
5 answers

Node.js version and Google Cloud functions

I get this message when I start a local Firebase server with firebase serve: Warning: You're using Node.js v8.9.4 but Google Cloud Functions only supports v6.11.5. But there is no info about what to do. What do I need to do to downgrade Node.js to…
Leo
  • 4,136
  • 6
  • 48
  • 72
15
votes
4 answers

Testing callable cloud functions with the Firebase CLI shell

I have been trying new firebase callable cloud functions in firebase functions:shell I keep on getting following error Request has incorrect Content-Type. and RESPONSE RECEIVED FROM FUNCTION: 400,…
Abhishek Bansal
  • 5,197
  • 4
  • 40
  • 69
14
votes
5 answers

Login to firebase using gcloud service account

I have functions deployed to gcloud functions and i want to configure CI/CD for deploying this functions from gitlab. To do any operations from gitlab i need to get firebase auth token with firebase login:ci command. The problem is that i need to…
Vitali Skripka
  • 562
  • 1
  • 7
  • 25
14
votes
6 answers

"firebase serve" in firebase functions is not running the latest changes

I am playing with firebase functions. Works fine when deploying to firebase server using command firebase deploy --only functions. However, I would like to test my functions locally before deploy to server of course. What I see running firebase…
14
votes
2 answers

firebase deploy: how to modify pre-deploy

I have a small front-end project with javascript running on firebase hosting and I have to call the build script manually before every time I run firebase deploy. So I was looking for a way to put it in a pre-deploy script but there's no such thing…
Hank Phung
  • 2,059
  • 1
  • 23
  • 38
13
votes
6 answers

firebase-tools no longer supports Java version before 11. Please upgrade to Java version 11 or above to continue using the emulators

I have version 11.0.1 of firebase installed on my Windows 11 machine. When I run the firebase emulators, it crashes with this message: $ firebase emulators:start !! emulators: firebase-tools no longer supports Java version before 11. Please…
AskYous
  • 4,332
  • 9
  • 46
  • 82
13
votes
1 answer

How to set storage rules so I can run my Firebase storage emulator?

When I run firebase emulators:start I have this error Error: Cannot start the Storage emulator without rules file specified In firebase.json Before installing Storage emulator, I can set the rule for Firestore like this { "firestore": { …
13
votes
1 answer

Firebase init "Node.js 8 has been deprecated."

When I run firebase init to start a new project the package.json file is created automatically (as below) when I go to the firebase dashboard it then throws this warning" Starting NaN, NaN, we'll no longer support new deploys or updates of Node.js…
13
votes
6 answers

Firebase cannot understand what targets to deploy

When deploying the following hello-world equivalent code I get the error shown in the end:- $ ls -lR .: total 8 -rw-r--r-- 1 hgarg hgarg 3 Aug 29 14:55 firebase.json drwxr-xr-x 2 hgarg hgarg 4096 Aug 29 11:56 functions ./functions: total…
Himanshu
  • 2,384
  • 2
  • 24
  • 42
1 2
3
54 55