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

Is there a way to normalise differences in request.url when http firebase-functions running under emulator and deploy

For firebase tools 6.9.2: When using firebase emulators:start --only functions, hosting where the functions are invoked via a hosting rewrite rule, the functions are invoked with different request url path prefixes than if the functions were…
0
votes
2 answers

firebase-fuctions ,TypeError: Cannot read property 'onRequest' of undefined

updated firebase via npm i -g firebase-tools , used my firebase id , while deploying my function at firebase ( with firebase deploy ) this error results out Error: Error occurred while parsing your function triggers. TypeError: Cannot read…
0
votes
1 answer

When I run firebase serve --only hosting,functions hosting doesn't work

I cannot emulate hosting and functions locally in the same time. Only functions works. node -v v10.15.3 firebase -V 6.9.0 When I run firebase serve --only hosting,functions I got: ✔ functions: Using node@10 from host. ✔ functions: Emulator…
0
votes
0 answers

Deploying a firebase functions

i'm trying to deploy my functions on firebase and it says "parssing error unexpected token", I have been stucked here since two days, thanks. Here is the image ---->
0
votes
1 answer

Google cloud built not substituting environment variable for firebase token

I have a cloud build trigger that attempts to push my application to firebase hosting. To do that I have an encrypted .env.enc file that contains the firebase token needed to deploy. During my build I decrypt this file and attempt to deploy but am…
0
votes
0 answers

Issue integrating Firebase Cloud Functions

I want to use Firebase Cloud Functions in my APP. So for that I have installed "node-v6.17.1.pkg" from official site. After installing I run "npm install -g firebase-tools" that brought permission error SO I run "sudo npm install -g firebase-tools"…
iPatel
  • 46,010
  • 16
  • 115
  • 137
0
votes
1 answer

Validation error while trying to add Firebase token in Gitlab CI environment variable

I want to add the token that I generated in firebase-tools using firebase login:ci to Gitlab CI. I went to Settings -> CI/CD -> Variables and added the environment variable with the key as FIREBASE_TOKEN. However I get: Validation failed: -…
Srividya K
  • 755
  • 6
  • 24
0
votes
1 answer

Firebase serve command does not run the entire script code(which in turn should display pages in web app in polymer web app on firebase serve command

Unable to display whole web application while trying to serve polymer web app with firebase serve: firebase serve This command only displays part of the code in the browser. It does not run the script command to display the web application pages. it…
0
votes
1 answer

Cant set up the Firestore emulator for testing Firestore security rules

Im trying to set up the firebase simulator for testing the security rules for my Firestore realtime DB. Im following the official google tutorial at: https://firebase.google.com/docs/firestore/security/test-rules-emulator I have set up the Firebase…
user1796624
  • 3,665
  • 7
  • 38
  • 65
0
votes
0 answers

'firebase' is not recognized as an internal or external command, operable program or batch file. In windows command prompt

After installed Node.js and executing command in command prompt npm install -g firebase-tools so,this thing comes out npm ERR! path C:\Users\XPENDER\AppData\Roaming\npm\firebase npm ERR! code EEXIST npm ERR! Refusing to delete…
Muhammad Umer
  • 357
  • 3
  • 13
0
votes
1 answer

Unset firebase cloud functions environment variable no updating

I am trying to update my environment config in firebase but somehow seem to be missing something, as the values are not updated. I have unset the key like so: firebase functions:config:unset admin_chat_id I have then deploy this unset like…
RobSteward
  • 305
  • 3
  • 11
0
votes
1 answer

Why do I get "Waiting for wzrd.in..." for a minute?

I am running a firebase project locally with firebase serve However it takes a long time for the initial HTML page to load. I just see this message for about a minute: Waiting for wzrd.in... I have no idea what is going on. I have been away from…
Leo
  • 4,136
  • 6
  • 48
  • 72
0
votes
1 answer

Impossible to deploy a React 16 app to Firebase hosting

I was already working with Firebase functions so I already had a Firebase project initialized and everything deployed successfully. I created a React app in the Firebase project directory with create-react-app. But now that I'm trying to deploy the…
Sebastien
  • 3,583
  • 4
  • 43
  • 82
0
votes
1 answer

Travis deploy Firebase hosting files not found

I'm trying to deploy on Firebase hosting through Travis CI but after my build generate to static files to be deployed, the deploy phase doesn't seems to find the files in the output folfer www. Does Travis delete files between script and deploy…
vietnem
  • 317
  • 4
  • 10
0
votes
1 answer

Why do the firebase cli give a TypeError

I already have some firebase cloud functions that runs fine, and now I try to add SendGrid functionality to one of the functions as described in https://youtu.be/JVy0JpCOuNI. The firebase CLI won't run my code because it says it has a TypeError The…