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

Flutterfire cli not showing windows and linux as an option for platform to support

I cannot compile my flutter app since it is not configured for windows, or rather it is not configured Firebase for windows, so the app starts but fails. And I don't understand why when I run flutterfire configure it shows what follows.
6
votes
2 answers

"firebase deploy --only hosting" suddenly failing with "Error: Failed to list functions for "

My firebase hosting deployments have suddenly started failing both in my Github CI Workflows and from my local machine. $ firebase deploy --only hosting === Deploying to ''... i deploying hosting Error: Failed to list functions for…
T_R_U_T_H
  • 475
  • 3
  • 12
6
votes
3 answers

How to limit instance count of firebase functions

I use following firebase cli command to deploy my firebase functions firebase deploy --only functions How can I limit the number of instances for functions, when deployed like this? It looks like gcloud command has --max-instances option to limit…
Lahiru Chandima
  • 22,324
  • 22
  • 103
  • 179
6
votes
0 answers

How to change firebase CLI debug file (i.e. ui-debug.log, firebase-debug.log) output folder to a separate logs folder?

I have been refactoring firebase's functions folder and I wanted to place all debug output files like firebase-debug.log and ui-debug.log in a folder called "logs". Currently, all my log files are mixed with all other files and it's annoying. I am…
Zorayr
  • 23,770
  • 8
  • 136
  • 129
6
votes
0 answers

Best practice of Jest/Typescript testing Firebase/Firestore Admin SDK

I am writing an application with backend written as a node/express server running firestore commands through the Admin SDK on firebase functions. I'm wondering what the best way to test my database functions are. An example of such a function is…
6
votes
1 answer

firebase deploy Node "Warning: Accessing non-existent property"

When I run firebase deploy I get this Node warning: (node:14802) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency I tried firebase deploy --only hosting and firebase deploy --only functions and got…
Thomas David Kehoe
  • 10,040
  • 14
  • 61
  • 100
6
votes
3 answers

firebase deploy error: 'eslint is not recognized as an internal or external command, operable program or batch file'

I wanted to use firebase hosting. so I followed the directions in the documentation to install firebase cli... I tried deploying and got this error ←[33m>←[39m firebase deploy === Deploying to 'firebase-project-id'... i deploying…
6
votes
2 answers

Firebase: deploy same app to multiple Firebase-projects

I´m trying to deploy my code to two different Firebase-projects, one for development and one for production. The my-app-dev project was already included and working, so I added the my-app (for production) with firebase use --add and selected the…
LukyFoggy
  • 519
  • 8
  • 31
6
votes
1 answer

Firebase doesn't deploy new function because it can't delete old function? can't I somehow ignore missing functions?

I have a node-based rest api app running off of a single firebase function and I'm trying to setup a CD pipeline to deploy a staging function and another a production function. The only way I've found to get this working was to have a…
SebastianG
  • 8,563
  • 8
  • 47
  • 111
6
votes
0 answers

Is there a way to add domains to the whitelist of firebase authentication through CLI?

For Firebase Authentication, when you're to sign in/up on your application, you need to have the host for that app registered as the whitelisted domain in the Firebase Console in order for the operation to proceed. Is there a way to do this through…
6
votes
2 answers

Firebase shell still reads my Node version 12 instead of the Nvm version

My problem is a bit tedious and need the community to help me out here. I installed node 12 from the official site of Nodejs.org using it's .pkg file. I use firebase functions shell to test our work locally, but due to version conflicts I need to…
Sumair Baloch
  • 445
  • 3
  • 15
6
votes
9 answers

i .firebaserc already has a default project, using newproject-7432a. Error: Failed to get Firebase project newproject-7432a

I forgot to logout from Firebase account in Terminal and change account before proceeding with firebase init, and I created a Firebase function for the new project with an old account, I went back and deleted the files including xcworkspace, and I…
HanKBeatz
  • 152
  • 1
  • 1
  • 10
6
votes
4 answers

Why can't latest firebase serve load the default credentials anymore

I am currently following this tutorial on youtube and at around the 26 minutes mark, the author is running his functions locally with the firebase serve command. This works fine for him, but as soon as I try to do that, I get the next…
Cornelis
  • 1,729
  • 5
  • 23
  • 39
6
votes
1 answer

Firebase Cloud Functions shell : add authentication token in order to call callable

How is it possible in firebase cloud function shell, to add authentication token, in order to test callables that require authentication ? what is good syntax for user authentication token : firebase >…
6
votes
2 answers

Firebase - insufficient permissions, even though I am project owner

I am trying to export Firebase user accounts using the Firebase CLI by calling this command: firebase auth:export save_file.json --format=json --project=MyProjectName This returns the following error message: Error: Authorization failed. This…
ASDFQWERTY
  • 399
  • 4
  • 8