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

Firebase and ng2-ion-range-slider package conflict in Angular

I am using Angular and Firebase (+ Cloud functions) and in my web app I also added ng2-ion-range-slider from npm to extend my UI. But what I noticed is after installing range slider I can not deploy cloud functions to firebase. There is an absolute…
ilgaz
  • 61
  • 3
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

How to not execute .js file in a shell

While I want to run firebase cli in my folder to deploy and serve, shell automatically execute firebase.js file in the folder. This causes Microsoft JScript compilation error. This kind of error did not happen in a mac but this happens in windows…
Nicholas Kim
  • 81
  • 1
  • 6
0
votes
0 answers

us-central1 firestore functions are no longer triggering

I modified the firebase-tools (https://github.com/firebase/firebase-tools) so that I could deploy functions to other regions than us-central1. Since other regions than us-central1 are supported by the google cloud platform I thought this would work…
0
votes
4 answers

Can not install Firebase CLI using npm

I first installed node and npm Ahmads-MacBook-Pro:~ ahmadbazzi$ npm --version 5.6.0 Ahmads-MacBook-Pro:~ ahmadbazzi$ node --version v8.9.4 Then i went to install the firebase CLI following the steps here…
Ahmad Bazzi
  • 113
  • 1
  • 9
0
votes
0 answers

Node.js not searching in correct directory

I'm using Firebase to create a web app, and I'm suddenly unable to deploy my app. When I run firebase deploy in the correct directory. It creates a folder called $RESOURCE_DIR with one folder inside. It then states it cannot find package.json. This…
user6945897
0
votes
1 answer

Time Period of Firebase realtime profile operations

The official document of Firebase Realtime profiler says: The profiler tool logs all the activity in your database over a given period of time, then generates a detailed report. But it doesn't tell the specific time like last 24 hours. My database…
Sachin Jain
  • 21,353
  • 33
  • 103
  • 168
0
votes
1 answer

Terminal command '--version' is showing an earlier version than what I just installed

I've been having serious issues with npm updating packages. I've changed the dependencies in my package.json's and ran npm install, I've tried deleting the global package but afterwards, when I type --version, my Command Line prints the version I…
Snkendall
  • 110
  • 6
0
votes
1 answer

Firebase auth:import doesn't import password SHA256

i'm trying to migrate users to firebase using the cli command auth:import. My passwordHash is a SHA256 without salt from PHP hash function hash('sha256', $password); When i use auth:import my user is added to my firebase users but without the…
Julien
  • 3
  • 1
  • 3
0
votes
0 answers

firebase deploy results in unexpected error

Since yesterday, 'firebase deploy --only hosting' always results in an unexpected error when the uploading process is somewhere between 70 and 80%. But sometimes, it works after trying for multiple (~15x) times. Any idea what my be…
Kode Bryant
  • 511
  • 8
  • 23
0
votes
1 answer

Simulate user-creation in Firebase functions CLI

I'm writing a function that is triggered whenever a new user is created in Firebase. Debugging this function takes me ages because I deploy the cloud function for every single change. I use Firebase CLI to simulate other events in the database, but…
0
votes
1 answer

Firestore Get Started Write and Deploy Your First Function install error

When going through the Cloud Functions docs and try to install npn. I get a bunch of errors when running this command from an Admin CMD window in Windows 10 npm install -g firebase-tool This is the CMD output please advice on what this means. Why…
Erik
  • 5,039
  • 10
  • 63
  • 119
0
votes
1 answer

Firebase tools use cases

could somebody explain use cases for using firebase tools. I understand that we can use them to connect to Firebase Realtime database and for authentication. But what I cannot grasp is: do we use it on our local machine and then deploy to google or…
Jane Riley
  • 23
  • 5
0
votes
0 answers

Error removing a node with firebase cloud functions using .remove()

UPDATE - SOLVED: Error in referencing. (Mentioned in Comment). Sorry to take your time. Whenever a user is assigned to a new manager, I want to remove their reference in the managedby node under the earlier manager. The user node (*) structure looks…
0
votes
1 answer

Firebase deploy successful but some files missing

I successfully deployed my site to Firebase using the Firebase CLI but when I try to load a particular page, it doesn't render correctly and in the console I get a 'Failed to load resource: the server responded with a status of 404()' error. The…