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

Deploy a function is successful in terminal but not appear in console

I deploy my function using Mac terminal with sudo firebase deploy. I get the respond : === Deploying to 'first-60012'... i deploying functions Running command: npm --prefix "$RESOURCE_DIR" run lint > functions@ lint…
user10808938
6
votes
2 answers

Firebase cloud function Firestore trigger onWrite not behaving as expected when testing locally

I am testing Firestore triggered Firebase Cloud Function locally in Node using Firebase Functions Shell. When working with a onWrite trigger and passing a new document by calling updateMonth({foo:'new'}) from the functions shell, I can't get a…
6
votes
1 answer

Firebase checking deployed files

When I run firebase deploy command, I would like to know which files are deployed. I tried firebase deploy --debug, but I don't see any information about uploaded files. [2018-05-25T09:48:26.423Z]…
Matt
  • 8,195
  • 31
  • 115
  • 225
5
votes
2 answers

Firebase Functions - FirebaseError: Missing required options (force) while running in non-interactive mode

I have a Firebase Function that deletes a user's collection in a Firestore database when their account is deleted. const firebase_tools = require("firebase-tools"); const functions = require("firebase-functions"); const admin =…
5
votes
1 answer

SignInWithCustomToken with auth emulator returns auth/invalid-custom-token

I am trying to auth using emulator with a firebase custom token sent from functions to a web page. But it returns a HTTP400 from www.googleapis.com when i use it with signInWithCustomToken();. /** BACKEND SIDE **/ const token = await…
Anthony Bobenrieth
  • 2,758
  • 1
  • 26
  • 38
5
votes
3 answers

Firebase deploy keeps giving me an Error: Parse Error in remoteconfig.template.json

I am trying to deploy a web app with firebase but every time I run deploy I keep getting this error Error: Parse Error in remoteconfig.template.json: No data, empty input at 1:1 ^ File: "remoteconfig.template.json"
mac
  • 89
  • 2
  • 8
5
votes
1 answer

Firebase: Unable to add new app (error message: Request contains an invalid argument)

I'm trying to create a Web App in Firebase so I can obtain credenials, but it is refusing to do so. I am not able to find anything on this error message. I'm getting the error state "An unexpected error has occurred. [Reason: Request contains an…
Patrick
  • 51
  • 1
5
votes
2 answers

Use Firebase Emulator Suite across multiple projects

I usually have my Firebase projects organized with a separate repo for the web app, manager portal, and cloud functions. Because the web app and manager portal use the same firebase project I keep the cloud functions in their own separate repo. So 3…
askilondz
  • 3,264
  • 2
  • 28
  • 40
5
votes
3 answers

firebase deploy No files matching the pattern "'src/**/*'" were found

iam trying to deploy my first cloud function on firebase but the problem is that it always says that there is something wrong and no files are matching the pattern i dont know why even that the index.ts is where it is supposed to be the error code…
5
votes
3 answers

Get "HTTP Error: 404, Method not found." when running "firebase deploy --only functions" on Firebase Cloud Functions

I'm stuck with this problem since hours and I thought that maybe one of you encountered it before. I get Error: HTTP Error: 404, Method not found. when I run firebase deploy --only functions so I'm unable to deploy my last updates. This happens…
5
votes
1 answer

How can I see what firebase account is currently logged in using the CLI?

Using the firebase CLI how can I see what firebase account is currently logged in? I looked at the command list but I can't find a command for it. Is that intentional?
anonymous-dev
  • 2,897
  • 9
  • 48
  • 112
5
votes
1 answer

Firebase CLI deployment warning: The Node.js 8 runtime is deprecated and will be decommissioned on 2020-12-05

I am trying to learn how to deploy the typescript onto my FCF but it seems not doing the deployment that it should do like in the documentation and the official video of firecasts. When I tried to deploy my default code of helloworld instead of…
Mr. Baks
  • 297
  • 2
  • 6
  • 20
5
votes
1 answer

Error connecting to local Firebase functions emulator from Flutter app

After setting up my project with a local Firebase functions emulator as my backend, and calling my Firebase onCall function from my Android emulator, I get this very non-informative error message PlatformException(functionsError, Cloud function…
5
votes
2 answers

How can I deploy a single Firebase Cloud Function in a group and a region?

I have created a group of Firebase Cloud Functions (v2) that are deployed in a region (europe-west1). #index.ts import * as apiV2 from './v2'; export const v2 = apiV2; #v2.ts export const addTextMessage = functions.region('europe-west1').onCall( …
5
votes
2 answers

Cloud Firestore emulator not running when testing Cloud Functions locally

I've been trying to implement some Cloud Functions that reads data from Cloud Firestore. I want to test these locally, however I cannot get the Cloud Firestore emulator to run. My assumptions are that it's where the problem is, but it might be…