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
32
votes
10 answers

Angular 6.0 firebase hosting deploy not working

I am looking for a tutorial on how to properly setup the firebase-tools hosting on my angular 6.0 projects, and what I found is always like this. - firebase init - then select the Hosting - What do you want to use as your public directory? dist -…
dotGitignore
  • 1,597
  • 2
  • 15
  • 34
31
votes
5 answers

Can I cleanly delete firebase CLI project?

I ran firebase init in the wrong directory and it is connected to my project. To undo that, can I just delete ./firebase.json and my_newly_created_folder_name/ from the terminal? Thanks
Script Kitty
  • 1,737
  • 5
  • 27
  • 47
30
votes
3 answers

Access firebase emulator from local network

I'm using firebase emulators:start firebase command to emulate functions locally. This work fine on iOS simulator but if I use real android device which is in the same network, these functions are unreachable. I can access 5001 port like this:…
King Julien
  • 10,981
  • 24
  • 94
  • 132
26
votes
2 answers

Is it possible to create a new Firebase project by API?

Is it possible to create new hosting projects by API, or another non-interactive method on Google Firebase? I already tried Firebase tools with a token, but it says that it is only possible to create a new project on Firebase Console. Some…
25
votes
1 answer

How to setup a Firebase demo project

The Firebase documentation mentions that the local emulator supports Real and Demo projects. A demo project is defined as: A demo project has no Firebase console configuration and no live resources. Demo project IDs have the demo- prefix. The…
Christian
  • 353
  • 2
  • 6
24
votes
7 answers

firebase-tools "Error: certificate has expired"

This morning I tried to deploy my react project to firebase hosting but I received this error: Error: Server Error. certificate has expired Then I tried to execute firebase list command to see the list of my projects but again I received the same…
24
votes
1 answer

how to unset firebase cloud functions environment variable

I have tried using command line functions:config:unset es.tipsinstitue.type as it is given here Environment Configuration. But this does not work for me. It gives me following exception. The filename, directory name or volume label syntax is…
23
votes
3 answers

How do I resolve new ESLint errors in my Cloud Functions project?

Another day another question regarding Firebase: I am relatively new to Firebase/node.js/npm ... I'm currently trying to build a mobile app backend with Firebase for a university project. I use node.js and write, not test my functions locally, then…
nnige
  • 307
  • 1
  • 2
  • 8
21
votes
1 answer

HTTP Error: 401, The entered credentials were incorrect. Firebase Cloud Function

Whenever I use following command in terminal (mac os sierra) firebase init below three option will be displayed ❯◯ Database: Deploy Firebase Realtime Database Rules ◯ Functions: Configure and deploy Cloud Functions ◯ Hosting: Configure and deploy…
Siddhpura Amit
  • 14,534
  • 16
  • 91
  • 150
21
votes
2 answers

How to set hash-key option for auth:import after default auth:export in firebase?

I've got my users exported the in CLI: firebase auth:export my_users.json The passwords in the exported file should be hashed with SCRYPT, because as the documentation states: auth:export command only exports passwords hashed using the scrypt…
ezmegy
  • 605
  • 6
  • 17
20
votes
3 answers

How to login to `firebase-tools` on headless remote server?

I am attempting to use firebase-tools on a remote Linux server via Putty. There is no desktop running on this server. When I run firebase login, I'm presented with a long url that I need to copy/paste into any other device's…
Jake Wilson
  • 88,616
  • 93
  • 252
  • 370
19
votes
4 answers

How do I find out what the current version of Firebase Tools is

From the node.js command prompt, using: $ firebase help gives this list: Usage: firebase [options] [command] Options: -------- - -V, --version - output the version number - -P, --project - the Firebase project to use for…
Alan Wells
  • 30,746
  • 15
  • 104
  • 152
19
votes
3 answers

Firebase tools: login as service account

I cannot find way how to deploy firebase project (functions) on behalf of service account. Nothing is said both on documentation page and also I found nothing related in their bug tracker. As described, I run firebase login:ci command but then I…
Serge
  • 1,947
  • 3
  • 26
  • 48
18
votes
8 answers

Can't deploy Cloud Functions because of "Unhandled error cleaning up build images"

I've deployed hundreds of function and this is the first time I encounter this issue. Simply, it stops deploying function process, saying: Unhandled error cleaning up build images. This could result in a small monthly bill if not corrected. You can…
Odai A. Ali
  • 845
  • 3
  • 8
  • 23
18
votes
1 answer

Firestore Cloud Functions not working locally

I have created a testing project and did configure everything according to documentation, but when I'm running the project, it's not working as expected, before writing this question, I did google and found some duplicate questions but the scenarios…
1
2
3
60 61