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

Express app using firebase functions

Im trying to run an Express app into firebase, i'm following the steps of this official video: Node.js apps on Firebase hosting crash course My Express app is actually running on this URL http://localhost:5001/my-app/us-central1/app/test But on…
0
votes
1 answer

How to send notification from user to user in android?

so I want to push notifications from device to device and I'm using firebase cloud functions for that and of course node.js as I was searching I found out that there is a new method to retrieve id from firebase firestore but no one explained it in a…
0
votes
0 answers

Different entry points in package.json for local environment vs cloud environment

I have written my firebase functions in ES2017 code, which I had to transpile since I cannot deploy functions with ES2017 JavaScript. The way I understand it is firebase serve serves up the functions to run in my local environment (which uses…
0
votes
1 answer

Serve Firebase Functions on Cloud9

I'm trying to serve firebase functions for testing in cloud9. I'm doing the following: $ firebase serve --only functions -o $IP -p $PORT === Serving from '/home/ubuntu/workspace'... i functions: Preparing to emulate functions. ✔ functions:…
nicholas
  • 14,184
  • 22
  • 82
  • 138
0
votes
1 answer

Firebase not deploying from command line in mac

I've been trying to deploy my firebase functions project for some time now and I can't seem to do it. I've followed some other question suggestions but none have worked. I've tried adding escaped colons to the predeploy: "predeploy": [ "npm…
0
votes
0 answers

firebase deploy fails with lots of errors

After updating firebase-tools from the suggestion that display when doing a firebase deploy, i can no longer user firebase-tools. I get all kinds of errors and nothing works any longer. I have completely uninstalled and reinstalled nodejs/npm with…
user616
  • 783
  • 4
  • 18
  • 44
0
votes
1 answer

Can you serve firebase functions when doing CI with token?

My objective is to serve firebase functions in my CI process, (and then run e2e tests). So in dev I can do this, assuming I am already logged in: firebase serve --only functions --port=9000 --project= However, in CI I am not logged in,…
DauleDK
  • 3,313
  • 11
  • 55
  • 98
0
votes
1 answer

Firebase Deployment Error for Google Assistant

sudo firebase deploy === Deploying to 'newproject-81c76'... i deploying functions Running command: npm --prefix "$RESOURCE_DIR" run lint > functions@ lint /home/bumblebee/Softwares/Firebase/myproject/functions > eslint…
0
votes
0 answers

Can't deploy Firebase functions

I am new to using Firebase functions and I have been following this tutorial on setting it up: https://angularfirebase.com/lessons/angular4-transactional-email-with-cloud-functions-and-sendgrid/ but when I try to deploy it using firebase deploy…
strypeez
  • 175
  • 1
  • 3
  • 16
0
votes
2 answers

Error invoking firebase function referencing local configuration variables from Firebase Functions Shell

This is a continuation of troubleshooting this problem and a separate issue related to implementing a suggested solution. I am attempting to consume Firebase function configuration from a locally-served environment as outlined here but I get an…
TheFastCat
  • 3,134
  • 4
  • 22
  • 32
0
votes
1 answer

Gertting Error installing firebase cli in linux mint

I use crazi_boii@crazi-Boii ~ $ sudo npm install -g firebase-tools to install the cli. and the cmd get executed perfectly. this is the error i get after typing the command "firebase…
Crazzi_Boii
  • 624
  • 1
  • 5
  • 9
0
votes
2 answers

issue with firebase functions deployment and npm

i have some deployment issues with deployment of my firebase functions, I can see that is a problem with npm, i have tried with 5 different versions of npm while running as admin but it still doesn't work, anyone got an idea og what is wrong? i have…
0
votes
0 answers

after Firebase init package.json not found during deploy

I tried this twice with two different projects and am getting the same error. After I installed node.js and did npm install -g firebase-tools. I first cd to the project directory in the CLI. I then do a firebase init and it runs fine. When I do a…
jd0117
  • 105
  • 9
0
votes
1 answer

Cloud Functions not Deploying from the Command Line

I'm having trouble deploying my cloud functions. I move to the root directory of the android project that holds my functions and use the firebase deploy command, I get this output: Last login: Mon Feb 26 23:36:02 on ttys000 joels-MacBook-Pro:~…
0
votes
1 answer

Firebase Cloud Functions - Cannot Deploy Project

I am trying to deploy my Firebase Cloud Functions to my project. I ran, from the command line: firebase deploy I then received the below error; I do not know how to associate with my Firebase project. I ran firebase login as well, and can confirm…
tccpg288
  • 3,242
  • 5
  • 35
  • 80