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

Dev environment for Google Cloud Functions

I followed the instructions and got the hello world route working online, but I cannot see how to get to a place where I can develop, i.e. to iterate locally. This is my code so far exports.helloWorld = functions.onRequest((request, response) => { …
Simon H
  • 20,332
  • 14
  • 71
  • 128
0
votes
2 answers

Firebase Deploy "An unexpected error has occurred"

Trying to deploy a new site to Firebase (as I've done a dozen times, though haven't for a few months). Everything is going fine, but then when I get to "Firebase Deploy", I get "Error: An unexpected error has occurred". I've tried the suggestions…
GCarssow
  • 17
  • 1
  • 6
0
votes
2 answers

firebase deploy is not recognized as an internal or external command,operable program

I was working with cloud function and It was doing great. Then I want to compile java program and install another extention on vscode. *notes : I changed my PATH But now, if I want to firebase deploy my cloud function its going like this This is my…
0
votes
1 answer

Get AD/LDAP user information

I'm building a Firebase webapp that will be used inside a corporate environment using windows desktops and AD/LDAP. The webapp is hosted in the cloud outside the corporate network. The webapp needs to visualise some of the AD/LDAP user information…
Tarscher
  • 1,923
  • 1
  • 22
  • 45
0
votes
1 answer

Google assistant action, no function URL

i would like to create an action project. I have an issue when i run firebase deploy --only functions. Before i run: npm install -g firebase-tools, firebase login, firebase init, npm install actions-on-google, npm install Everything is working and…
0
votes
2 answers

Can't deploy firebase cloud function for flutter

Error: Error occurred while parsing your function triggers. TypeError: require(...) is not a function at Object. (A:\Android Projects\buy_storage_try\buy\functions\index.js:21:45) And this is the line of code: const gcs =…
Adam CJ
  • 59
  • 1
  • 5
0
votes
0 answers

Firebase webApp non-fatal error on server start: "functions: Preparing to emulate functions."

After doing all the clean up I could find, I am still encountering this error below. I have seen the posts that say to stop other node processes that might be running. I have done that, but still get this error. From what I can tell, it's actually…
Gene Bo
  • 11,284
  • 8
  • 90
  • 137
0
votes
2 answers

No HTTPS functions found. Use firebase functions:shell

I've been trying all day to get my functions to run locally but I don't know why it keeps saying I have no functions. I'm using typescript, so I ran tsc in the functions folder, then ran sudo firebase serve --only functions, but I get this error: i …
AskYous
  • 4,332
  • 9
  • 46
  • 82
0
votes
1 answer

Firebase Cloud Functions deploy error javascript

I'm trying to deploy my cloud function firebase CLI, but there is an issue with my functions. I haven't changed any of my firebase cloud function settings. When I try to run firebase deploy --only functions, I get the following error: npm ERR!…
Miraz
  • 69
  • 8
0
votes
1 answer

Error while deploying environment variable to firebase

When I am triying to add environment variable to firebase, I have the following error when doing firebase deploy --only functions Error: Cannot understand what targets to deploy. Check that you specified valid targets if you used the --only or…
V. Lachand
  • 31
  • 4
0
votes
2 answers

firebase serve functions not starting

I'm posting here first because this seems more likely to be operator error than an actual bug with the firebase CLI itself since I've not been able to find anyone with the same problem I'm experiencing. I'm running: firebase-tools 4.2.1 node…
Justin Grahn
  • 335
  • 3
  • 4
  • 14
0
votes
1 answer

Why does add firebase serve command some additional info to url?

My problem is about testing my codes on localhost (ports: 5000, 5001). I'm using the command below in terminal windows: sudo firebase serve And it's giving the links after ready: hosting[helloapp]: Serving hosting files from:…
RedLEON
  • 281
  • 2
  • 7
  • 19
0
votes
1 answer

Firebase functions redeploy utility scripts

I hit following problem working with firebase functions, I split functionality into different files, few of them have only custom utility logic. The thing is that with firebase CLI I only can upload separate functions with : firebase deploy --only…
Anton
  • 1,001
  • 9
  • 23
0
votes
1 answer

firebase CLI does not deploy to correct project

I am deploying the development and production branches using git source control. The functions have a .firebaserc as below $ cat .firebaserc { "projects": { "default": "doodlemobileapp-dev" } } firebase deploy works fine and deploys to…
Vik
  • 8,721
  • 27
  • 83
  • 168
0
votes
0 answers

Impossible to deploy Cloud Functions from firebase

I'm building an Angular + Firebase web app and due to some complex queries I started looking for Cloud Functions from firebase. My project looks like: MyProject |__ node_modules |__ src (with app and my complete project) |__ some files like…
Emeric
  • 6,315
  • 2
  • 41
  • 54