Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get firebase deploy --email or --token parameters to work?

I'm having trouble deploying travis CI with firebase using these firebase commands:

firebase deploy --email ${FIREBASE_USERNAME} --password ${FIREBASE_PASSWORD}
firebase deploy --token ${FIREBASE_TOKEN}

It does not like --email option and it does seem that it takes --token but does not work with my firebase auth token I can get from my firebase app. What am I doing wrong?

like image 715
jhlosin Avatar asked Dec 10 '15 03:12

jhlosin


People also ask

How do I get firebase tokens for deployment?

Use firebase login:ci to generate a token. On a machine with a browser, install the Firebase CLI. Run firebase login:ci to log in and print out a new access token (the current CLI session will not be affected). Store the output token in a secure but accessible way in your CI system.

What script should be run before every deploy firebase?

The firebase init command creates a firebase. json configuration file in the root of your project directory. The firebase. json file is required to deploy assets with the Firebase CLI because it specifies which files and settings from your project directory are deployed to your Firebase project.

How do I verify my firebase custom token?

To do so securely, after a successful sign-in, send the user's ID token to your server using HTTPS. Then, on the server, verify the integrity and authenticity of the ID token and retrieve the uid from it. You can use the uid transmitted in this way to securely identify the currently signed-in user on your server.


1 Answers

The email option was removed in the 2.0 release of the CLI.

Use firebase login:ci to generate a token.

  1. On a machine with a browser, install the Firebase CLI.
  2. Run firebase login:ci to log in and print out a new access token (the current CLI session will not be affected).
  3. Store the output token in a secure but accessible way in your CI system.
like image 194
David East Avatar answered Nov 16 '22 20:11

David East