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

Unable to install firebase-tools by npm on MAC OSX 10.12.6 (ERROR : Unexpected end of JSON input while parsing near '...x","firebase":"~1.0.1)

I am currently using node version 10.10.0 and npm version 6.4.1 Trying to install firebase CLI to work on cloud functions for the firebase project already created. It is working fine on other systems but is unable to install firebase-tools on my…
0
votes
1 answer

npm list firebase VS firebase --version

I know both npm list firebase and firebase --version give you the version of firebase. However when I run npm list firebase `-- firebase@4.13.1 and when I run in the same directory firebase --version 3.13.1 Why are these two versions not the same?
Louis Vetter
  • 199
  • 2
  • 10
0
votes
0 answers

Firebase Hosting : Deploy is not working - it stops & not gives any response

I am Trying to Deploy my one-page website in Firebase Hosting, I was able to successfully initiate and serve the Website on my local system. After using firebase deploy there is no response from the server. I kept it for more than 12 hours, but it…
JB Pakalapati
  • 137
  • 10
0
votes
1 answer

Deploy via firebase-tools API without previous login

I'm currently building an open-source microservice that makes use of Firebase Database, Hosting & Functions. The plan is to pack everything in a single binary and distribute this. So users will have a hazzle-free, "bring your own Firebase…
Emanuel Kluge
  • 705
  • 5
  • 10
0
votes
1 answer

When are the dependencies of a Firebase Function installed on the hosting server? On deploy?

As per https://firebase.google.com/docs/functions/handle-dependencies : "If you are deploying through the Firebase CLI, the local node_modules folder is ignored, and you must specify your dependencies in package.json" Thus, are the dependencies in…
Divyansh Goenka
  • 997
  • 2
  • 12
  • 35
0
votes
0 answers

NPM Error while using the Firebase CLI trying to deploy

This is the log of the error: 0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli '--prefix', 1 verbose cli …
0
votes
1 answer

firebase deploy problems-nodeJS version

when I want to deploy my project with firebase, I encountered the nodeJS version problem and it troubled me for many days. when I apply the command "firebase deploy --only functions", then it reminds me that: i deploying functions Running command:…
Lei Zhao
  • 1
  • 1
0
votes
0 answers

firebase-tools error - cannot find module 'cycle'

Quick context of my problem. I have an angular app that i want to get on a CI flow with Bamboo. When I am working on it locally (macOS High Sierra 10.13.5) everything is good. But, when i run the build plan or when it triggers on repository…
Simon k
  • 403
  • 1
  • 5
  • 17
0
votes
1 answer

Error when `firebase deploy`ing Google Smart Home codelab action

I was trying to follow https://codelabs.developers.google.com/codelabs/smarthome-washer/#2 But I got stuck on firebase deploy on step 3. First error: Error: package.json in functions directory has an engines field which is unsupported. The only…
0
votes
2 answers

Get email upon every "firebase deploy"

I'd like to get an email upon every firebase deploy. Reason: security - I want to know if someone hacks into my account and deploys an alternative firebase backend. Is it possible?
Slavik N
  • 4,705
  • 17
  • 23
0
votes
1 answer

Error Deploying Firebase function

I am trying to deploy a firebase cloud function that will push something to my algolia search engine everytime a new event is added under the events node. I followed the tutorial here which seems to detail how to do things for the most…
0
votes
2 answers

When deploying firebase files, index.html is not being updated

When I open a terminal in my firebase folder with all the dependancies and files etc, and I type 'firebase deploy' into the terminal, all works fine and functions are updated and rules are updated, but the changes to index.html are not pushed to the…
Ryan
  • 720
  • 1
  • 8
  • 27
0
votes
1 answer

firebase database:update from CLI - multiple database in one project

My firebase project has multiple real-time databases (RTDB). How can I use the command line interface (CLI) to update a specific database when I have more than one? $ firebase database:update --help Usage: database:update [options]
philshem
  • 24,761
  • 8
  • 61
  • 127
0
votes
2 answers

I want to write a Firebase Function for a different project. How do I do that?

I have 2 different projects that I'm working on concurrently. I worked on the 1st project and have a native index.js file for that project. Then, I wanted to write Cloud Functions' code for the 2nd project. So, when I typed 'firebase init…
Arjun Ram
  • 369
  • 2
  • 18
0
votes
0 answers

Unable to init new firebase project from console

I'm trying to host my webapp on firebase and am currently running into this issue: My order of operations: (in root) > npm install -g firebase-tools > firebase login > $ npm run build > cd dist > firebase init iq18 > (select my desired app in FB…
knocked loose
  • 3,142
  • 2
  • 25
  • 46