Questions tagged [firebase-tools]

1

votes
1

answer
513

Views

missing script: build - firebase deploy

When I deployed my firebase function project, this error appeared 'missing script:build' and I try to fix it but it fails. Please help me This is error screenshot
Hassan Salah
1

votes
1

answer
411

Views

How to get android app version with firebase fcm token from server side

I need my android app version at server side for those older app versions which are already on user's devices.I can't change android app code but can change server-side API code.I am using firebase for notification basically I have fcm token from where I want to retrieve app version. PS: I want to f...
Ritesh Kumar
19

votes
1

answer
2.8k

Views

Is it possible to create a new Firebase project by API?

Is it possible to create new hosting projects by API, or another non-interactive method on Google Firebase? I already tried Firebase tools with a token, but it says that it is only possible to create a new project on Firebase Console. Some context: My project allows users to create static websites o...
Roger Russel
1

votes
0

answer
188

Views

Travis CI - failing to deploy to Firebase - Cannot find module 'ipaddr.js'

I added .travis.yml to my project and each time I commit to master branch, it runs all tests / scripts ok but last firebase deploy fails consistently with error like below: But certainly I am installing dependencies under functions folder and can deploy on localhost with no problem. My .travis.yml l...
bob
1

votes
0

answer
300

Views

invoking Cloud Functions locally through the Firebase CLI?

I'm trying to follow the steps here to deploy firebase locally. While I can get the deploy happening and I get the local function URLs I can call I can't invoke the functions via the CLI with Firestore data using the Firebase CLI. The doc sends me to the example of request in npm but I'm not sure wh...
tweetypi
1

votes
0

answer
758

Views

firebase command not found

I am new to firebase and I'm trying to install it on Ubuntu. I've used npm install -g firebase-tools, when I run the command firebase init I get firebase: command not found. I've looked at this post, npm get prefix gives me /usr . So I added export PATH='/usr/bin:$PATH' at the end of .bashrc file,...
Chenlin Ye
1

votes
0

answer
126

Views

Storing client secrets for desktop apps particulary electron/cli apps

I tried to lookup how firebase cli handles client secrets. Can somebody explain what that means. I have a electron app. I need users to login and keep those access token offline so that they need not login again. I have it all figured out but the problem is with storing client secrets. Am I in the r...
Girish
1

votes
0

answer
103

Views

Firebase : Failed to configure trigger providers/cloud.storage/eventTypes/object.change

Can anyone tell me how to fix the following storage trigger error: Failed to configure trigger providers/cloud.storage/eventTypes/object.change Strange thing is some of the triggers deploy successfully. All of the triggers deployed successfully just a week ago and we haven't changed our environment...
Thembelani M
1

votes
0

answer
183

Views

Firebase Functions Upgrading to Node 8

Does the version of Node.js on my development machine / integrated development environment (IDE) machine have any effect on my ability to upgrade my Firebase Cloud Functions Node.js runtime to version 8? I finally got my functions Node.js runtime upgraded to v8 but I had a difficult time doing it. I...
Ron Royston
1

votes
0

answer
23

Views

Firebase-Tools: Initialize project using the CLI as a module

I am working on a vscode extension which integrates firebase-tools into vscode commands. In order to do this I need to run the firebase-tools cli commands as a functions through a module which is said to be possible at the bottom of the github repo readme. I am trying to initialise a firebase projec...
KALEIDAWAVE
1

votes
0

answer
92

Views

Permission Denied Error Installing Firebase-Tools in GitLab

I'm trying to set up GitLab CI/CD to deploy to Firebase. I've looked at a few tutorials online and they all say basically the same thing - install firebase tools then deploy with an auth token. However, when I get to this step I get a permission denied message, as shown below. My .gitlab-ci.yml: ima...
Daniel
1

votes
1

answer
141

Views

How to use firebase-tools as a module and to deal with promises

Could someone please explain how to use firebase-tools as javascript module? I have implemented a command line tool where I want to execute the function data:push. The problem is that I did not receive a promise as described in the documentation. This is what I have so far: module.exports = new Com...
DoK
1

votes
1

answer
557

Views

Firebase API for moving a tree branch from a collection to another one

In my application, I need to move a quite big collection branch to another collection. Currently, I'm using something like that: srcRef .startAt(start) .endAt(end) .once('value', function(snap) { destRef.set(snap.exportVal()); }); Obviously, it is quite expensive, so my question is: Why Firebase doe...
devmao
1

votes
1

answer
422

Views
1

votes
1

answer
887

Views

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 deploy my app to firebase hosting I get an error sayi...
harryfo
1

votes
1

answer
514

Views

I'm unable to login in firebase using “firebase login”

I installed node.js and downloaded firebase tools. After that when I enter 'firebase login' in the cmd, nothing prompts up. Where am I going wrong?
Gaurav Rathod
1

votes
2

answer
50

Views

How does one turn on diagnostic and/or progress logging with firebase-tools run as a node module?

I have not been able to find any reference for the options passed into the node module version of firebase-tools. How do one turn on diagnostic logging or progress output? The github README for firebase tools only says: The Firebase CLI can also be used programmatically as a standard Node module. Ea...
Mike
1

votes
1

answer
537

Views

How do I deploy Firebase cloud function changes to firebase instance?

I have just deployed my first Firebase could function with this command firebase deploy --only functions and then I found some mistakes in the function code. I have corrected the mistakes in index.js and now how do I deploy the changes to the function?
Eddi
1

votes
1

answer
465

Views

Cloud Functions Local HTTP Trigger

What is the correct way to execute/trigger Firebase functions locally when utilizing firebase-tools functionality firebase serve? Let's say you have the function: exports.hello = functions.https.onRequest((req, res) => { res.send('Hello World'); }); If normally one would trigger the production funct...
1

votes
1

answer
232

Views

Unable to install firebase functions

I try to use firebase functions and I got stuck during the firebase CLI installation. I have installed node and npm. Now after I install firebase-tools I try to login an I get: command not found Here is my terminal message: Peters-iMac:GrabItOrItsGone petersypek$ sudo npm install -g firebase-tools n...
Peter Sypek
1

votes
2

answer
153

Views

Firebase-CLI | Skip 'yes/no' confirmation when deleting from database | batch

The title pretty much says it all. For one of my websites, I have a server computer running a batch file that updates the database after performing an action for a user. After it finishes this action, it deletes the user's request on the database. How can I automate the process of deleting something...
Dowland Aiello
1

votes
1

answer
571

Views

“firebase serve --only functions” breaks after moving project folder

I've been working on a Firebase functions project, running the service locally for testing. It was all working fine, but then I moved the source folder to a new location (into source control), and now it won't run, because something, somewhere remembers the old location of the project. So where the...
spechter
1

votes
2

answer
539

Views

How to retrieve list of Firebase authenticated users and download them in JSON format?

I am new to firebase, I wanted to retrieve list of my authenticated users in JSON Format I have searched for the solution but couldn't have found, some say it isn't possible !!! Please, someone, tell me whether it is possible or any other alternative ways to get my users username/displayName/email...
Niamatullah Bakhshi
1

votes
2

answer
957

Views

Can not install Firebase CLI using npm

I first installed node and npm Ahmads-MacBook-Pro:~ ahmadbazzi$ npm --version 5.6.0 Ahmads-MacBook-Pro:~ ahmadbazzi$ node --version v8.9.4 Then i went to install the firebase CLI following the steps here https://firebase.google.com/docs/functions/get-started. I first executed Ahmads-MacBook-Pro:~...
Ahmad Bazzi
1

votes
1

answer
3k

Views

Firebase deploy, ignore all files but public folder

I am trying to clean up my deployment process to Firebase, and need to ignore all files besides my /dist aka public folder when deploying files to the hosting. I believe it can be done via ignore setting in firebase.json, but I am not sure how to achieve it besides manually specifying all files. exa...
Ilja
1

votes
3

answer
1.7k

Views

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 the token on the other system and I passed the toke...
cicciosgamino
11

votes
1

answer
5.6k

Views

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 : Previously I have installed the latest stable version of...
Ionut
6

votes
2

answer
483

Views

`firebase deploy` with CLI tools 3.17.0 gives “Error: Firebase config variables are not available”

Full error dump: Error: Error occurred while parsing your function triggers. Please ensure you have the latest firebase-functions SDK by running 'npm i --save [email protected]' inside your functions folder. Error: Firebase config variables are not available. Please use the latest version of...
Doug Stevenson
5

votes
4

answer
2.5k

Views

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 way to supply credentials to Firebase? Cheers
user1820709
20

votes
3

answer
9.5k

Views

Firebase CLI: “Configure as a single-page app (rewrite all urls to /index.html)”

I just used the Firebase CLI to init a static hosting project. What exactly happens when you enable the 'configure as a single-page app' option? I'm looking for a description of exactly which files are modified, and what kind of effect this has on the Firebase backend.
Kayce Basques
6

votes
1

answer
1.5k

Views

'Firebase init' command didn't create package.json, index.js and function folder

I’m now trying to create a tutorial app for my Google Home but I faced some trouble. According to this tutorial, I finished following steps of Build fulfillment. 1.Download and install Node.js. 2.npm install -g firebase-tools 3.firebase login 4-1.mkdir sillynamemaker 4-2.cd sillynamemaker 4-3.fire...
popo
21

votes
3

answer
8.6k

Views

How do I switch apps from the firebase cli?

This seems like something which should be pretty easy to do, but for whatever reason, I'm being defeated. I'm trying to use the firebase-tools CLI to interact with my database. I'm able to login without any trouble, and when I type firebase list, I get a list of all my current apps. It also tells me...
wvm2008
2

votes
3

answer
385

Views

Is there a way to monitor changes like “nodemon” for Firebase command line?

Is there any way to get the Firebase command line to simply refresh the server as I am applying changes to code similar to what nodemon does for nodeJS? I'm working with Polymer for web.
TheeBen
2

votes
1

answer
872

Views

How to solve TypeError: functions.https.onCall is not a function?

I have a Firebase project that I've created earlier this year. It uses Cloud Functions to run some operations on the Realtime Database. Yesterday, I learned about the Callable Cloud Functions, so I decided to try it in my app to see if I should update my existing Functions or not. I've created a sim...
3

votes
1

answer
649

Views

HTTP Error: 401, The entered credentials were incorrect. Firebase Cloud Function

Whenever I use following command in terminal (mac os sierra) firebase init below three option will be displayed ❯◯ Database: Deploy Firebase Realtime Database Rules ◯ Functions: Configure and deploy Cloud Functions ◯ Hosting: Configure and deploy Firebase Hosting sites If I select nothing an...
Siddhpura Amit
6

votes
1

answer
1.5k

Views

firebase deploy is slow and not responding

Running the deploy command to a site just makes the Terminal blink as if it was stuck in some heavy operation. And nothing would happen. I actually didn't try running with the --debug flag. First thought is that I'm behind a company proxy. So I setup a 'pure' connection and it's still not connectin...
Mazze
3

votes
2

answer
1k

Views

Firebase project error TypeError: targetNames.join is not a function

Hi I am following this guide: https://codelabs.developers.google.com/codelabs/cloud-firebase-chat/#2 and when I want to 'firebase deploy' then I get this error: TypeError: targetNames.join is not a function at deploy (C:\Users\grzeg\AppData\Roaming\npm\node_modules\firebase-tools\lib\deploy\index.js...
Grzegorz G.
6

votes
3

answer
2.7k

Views

Cloud Functions Firebase CLI predeploy error (typescript)

I´m trying Cloud Functions with typescript. After successfully installed, added a trigger and tested deploy. index.ts import * as functions from 'firebase-functions'; export const createAccount = functions.auth.user().onCreate(event => { const user = event.data; console.log('user displayname', user...
guillefd
3

votes
3

answer
688

Views

Firebase: error: unknown option `--public'

I am using this tutorial, after I successfully login to Firebase, I need to set the root dir. So as the tutorial instructs, I run: ~/firebase-webchat$ firebase init --public . However, I get the following error: error: unknown option `--public' Does anyone know what command I should be using? Thanks
Richard
12

votes
1

answer
1.8k

Views

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 on cloud9 support makes sense but did everything th...

View additional questions