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?
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.
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.
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.
The email option was removed in the 2.0 release of the CLI.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With