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
6
votes
8 answers

Could not read public directory. Remove links and shortcuts and try again. (Firebase)

I was stepping through this tutorial: https://codelabs.developers.google.com/codelabs/firebase-web/#0 On step 9 it asks you to execute firebase deploy but when I try to do it I get the error message: Could not read public directory. Remove links…
Luis Perez
  • 27,650
  • 10
  • 79
  • 80
6
votes
2 answers

Trying to rollback Firebase version to 2.X

I recently updated to the new Firebase 3 but unfortunately as far as I can tell it doesn't support Geofire queries at the moment which is important in my app, I've rolled everything else in my application to using firebase 2 however when I try to…
harryfo
  • 106
  • 1
  • 5
6
votes
3 answers

Firebase CLI Authentication through token

I followed the steps described in the official GitHub tutorial for use the Firebase CLI (Command Line) with a CI system (simple OS without browser integrate). I use my PC to login in firebase and get the token (from the browser procedure). I copied…
cicciosgamino
  • 871
  • 3
  • 10
  • 29
5
votes
0 answers

I can't deploy my firebase function, I got the error: Functions codebase could not be analyzed successfully

For my project, I was trying to create and use a function to delete a specific user from Firebase Auth. But I learned that I can't do it from client-side.After that situation, I have started to learn and use Firebase Functions. They look pretty easy…
5
votes
1 answer

Error while deploy nextjs in firebase hosting - Invalid value specified for cpu

I am getting error while deploying nextjs 13 in firebase hosting through firebase-tools. error - HTTP Error: 400, Could not create Cloud Run service ssrlyeanabot. spec.template.spec.containers.resources.limits.cpu: Invalid value specified for cpu.…
5
votes
1 answer

"At least one of ID token and access token is required" with google signin flow with firebase emulator suite

I am trying to test google signin flow with firebase emulator suite. The issue is google sign-in are not receive idToken all the time but firebase emulator suite only supports id_token, So I can't login through this approach. Edited: …
flutroid
  • 1,166
  • 8
  • 24
5
votes
3 answers

Cloud Functions FieldValue increment TypeError in Firestore

I am testing cloud functions in the firebase emulator and getting an error when trying to increment a field in the cloud firestore. Please check my code & error message below. Thanks for any help! import * as functions from…
5
votes
3 answers

Failed to load function definition from source: Failed to generate manifest from function source: SyntaxError: Unexpected token '.'

I have been facing this firebase emulator error when I try to start the emulator and it stops suddenly by providing this error continuously: Failed to load function definition from source: Failed to generate manifest from function source:…
5
votes
1 answer

VSCode intergrated terminal fails to execute command, but system terminal executes same command correctly

M1 Mac system terminal firebase emulators:start works as expected. But VSCode integrated terminal errors on the same command (error given below). How can I fix this? If it matters, I use both Fish and Zsh, and the behavior is consistent for both:…
ultraGentle
  • 5,084
  • 1
  • 19
  • 45
5
votes
2 answers

Firebase storage emulator ignored by go admin sdk

I'm trying to setup the storage emulator for my firebase project. I am using the Go admin sdk. However it seems to be ignored despite following the documented process. App initialization: func App(ctx context.Context) (*firebase.App, error) { …
5
votes
3 answers

Firebase emulator gives CORS error when trying to use Firestore

I have set up emulator to work, I can access it on port 4000. I also see the Firestore status "ON" However, when I try to make a query, I get: Access to fetch at…
mgPePe
  • 5,677
  • 12
  • 52
  • 85
5
votes
0 answers

Cannot Open Email Sign In Links from Firebase Emulator

I am having trouble using the firebase auth emulator with (passwordless) Email Link SignIn. Everything seems to be working fine: sendSignInLinkToEmail(auth, email, actionCodeSettings) the Emulator shell provides me a link e.g. To sign in as…
Martin Reiche
  • 1,642
  • 1
  • 16
  • 27
5
votes
1 answer

"FirebaseError: false for 'get' @ L5" firebase error when using on snapshot or get doc when using firebase emulator

I am using firestore and firebase auth and I am trying to add custom usernames to my app (I am following this courses, Next.js Firebase Full Course) that connect to the freebase emulator because it is still in development. I have this piece of code…
5
votes
1 answer

Firebase Emulator UI requires a project ID to start

I have run through the docs and can not get the UI firebase emulator to work. I'm using firebase version: 9.22.0 on a mac M1 warning in console. i emulators: Starting emulators: hosting i hosting: Serving hosting files from: build ✔ hosting:…
me-me
  • 5,139
  • 13
  • 50
  • 91
5
votes
1 answer

Cannot find module '.../lib/providers/https

I try to run the functions emulator with firebase emulators:start and get an error: ❯ firebase emulators:start i emulators: Starting emulators: functions ⚠ functions: The following emulators are not running, calls to these services from the…
Thomas Bouldin
  • 3,707
  • 19
  • 21