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
17
votes
2 answers

Google Cloud Functions Cron Job Not Working

I am trying to set up a scheduled function in Firebase Cloud Functions. As a simple test, I have tried to recreate the sample shown on the documentation page: const functions = require('firebase-functions') exports.scheduledFunction =…
Moshe
  • 6,011
  • 16
  • 60
  • 112
17
votes
2 answers

can't use cypress to test app using using firestore local emulator

I have a app built with vue and firebase/firestore. I use the firebase emulator to local development and am trying to integrate my dev workflow with cypress. But i get a error in cypress that do not occur if i access the app from browser. Firebase…
17
votes
1 answer

firebase local server > how to refresh browser when files changed

I'm running a webapp on a local firebase server (which is started with 'firebase serve'). What I want is to find a way to tell my client (browser script) that my project files have changed in order to initiate a browser refresh. In former projects…
sasha
  • 779
  • 10
  • 21
17
votes
4 answers

Unable to do Firebase deploy - Error: Invalid Firebase specified

After accomplishing all the necessary steps on firebase.com/docs and upgrading my app to newer version I still can't run the deploy it using firebase-tools. $ firebase deploy MY_APP_NAME Gives following…
shershen
  • 9,875
  • 11
  • 39
  • 60
17
votes
4 answers

Firebase tools login from command line

I'm using Codeship to deploy a firebase app. In order to do so, I first need to login using the firebase login command. Problem is, I need to login in the browser and then return to the command line and perform the deployment. Is there an automated…
atardadi
  • 429
  • 2
  • 5
  • 14
16
votes
5 answers

Can I use the auth:import and auth:export tools with the Firebase Auth Emulator?

I would like to preload the firebase auth emulator with my test user accounts whenever it starts up, the same way I do for the Firestore emulator with its import/export options. I tried using auth:import and auth:export while my emulators were…
Alex Egli
  • 1,884
  • 2
  • 24
  • 43
16
votes
4 answers

Firebase CLI: No project is currently active

I'm following this Firebase intro tutorial: https://codelabs.developers.google.com/codelabs/firebase-web/ I follow the instructions and when I get to step 3, I run firebase use --add and I get the following: # firebase use --add > web-start@1.0.0…
Jake Wilson
  • 88,616
  • 93
  • 252
  • 370
16
votes
2 answers

How to list all active firebase ci tokens, or revoke them all

I realize you can create a firebase token by using firebase login:ci You can revoke an individual token by doing firebase logout --token But how do you either a) revoke all of them, or b) list all the active tokens? I want to make sure…
Qiming
  • 1,664
  • 1
  • 14
  • 18
16
votes
1 answer

can't firebase login in Cloud 9

Installed firebase-tools in Cloud 9. To set it up, tried firebase login but can't get the auth for the cli. After clicking on the authentication link that's provided, the redirect url looks for the localhost which obviously can't be reached. Answer…
15
votes
4 answers

Firebase Tools and Java 11

This question falls somewhere between Firebase Tools, MacOS and Java. Probably 75% Java, 20% Firebase Tools and 5% MacOS. Starting with v10.5, firebase-tools started stating that 'Support for Java version <= 10 will be dropped soon in…
Joseph Zabinski
  • 693
  • 4
  • 23
15
votes
1 answer

How to switch between two firebase projects in cloud functions?

I have two Firebase projects one for the development of another for production. How do I switch between them in the root branch with cloud functions? Since for example I'm developing a new function and I want to do deploy only on the firebase…
14
votes
5 answers

How to use firestore emulator from client

I want to test locally my firebase functions. These functions make firestore queries. So i start the emulator firebase emulators:start and in my client i use firebase.functions().useFunctionsEmulator('http://localhost:5001'). My functions work well…
14
votes
11 answers

Cannot login with the Firebase CLI

I have a problem when I try to login to Firebase using the CLI. I installed firebase-tools using npm -g install firebase-tools with admin rights. The steps I do are (from a cygwin terminal on Windows 10 Professional): firebase login…
carbontracking
  • 1,029
  • 4
  • 17
  • 33
14
votes
1 answer

Unable to initialize firebase project using firebase-tools

I'm trying to initialize a firebase project using the command firebase init, but I get the message Error: Command requires authentication, please run firebase login. When I run firebase login, the process hangs and does not return the prompt…
Ionut
  • 1,729
  • 4
  • 23
  • 50
13
votes
6 answers

firebase-tools no longer supports Java version before 11. Please upgrade to Java version 11 or above to continue using the emulators

I have version 11.0.1 of firebase installed on my Windows 11 machine. When I run the firebase emulators, it crashes with this message: $ firebase emulators:start !! emulators: firebase-tools no longer supports Java version before 11. Please…
AskYous
  • 4,332
  • 9
  • 46
  • 82
1 2
3
60 61