Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase tools: login as service account

I cannot find way how to deploy firebase project (functions) on behalf of service account.

Nothing is said both on documentation page and also I found nothing related in their bug tracker.

As described, I run firebase login:ci command but then I need to login myself - and I want login as service account.

Such feature is available using gcloud tool, but, as stated in docs,

Cloud Functions written using the Firebase SDK for Cloud Functions can't be deployed using the gcloud command-line tool, and vice-versa.

like image 208
Serge Avatar asked Aug 01 '17 12:08

Serge


1 Answers

firebaser here

Since version 7.1 of the Firebase CLI/tools it is possible to authenticate with a service account.

Also see Michael's answer here: Login to firebase using gcloud service account

Previous answer:

To use the Firebase CLI/tools you need to be signed in as an actual user. There is no way to run the Firebase CLI as a service account.

It's been noted as a valid and interesting feature request though! Some work that might help towards this feature is being done in this PR. As usual: no commits on if/when/how this may land. Keep an eye on the release notes for the latest updates.

like image 101
Frank van Puffelen Avatar answered Sep 23 '22 16:09

Frank van Puffelen