I’ve been using the Firebase CLI tools for a while, and I’ve always authenticated by generating a token with firebase login:ci
and then logging in with firebase login --token <token>
.
However, I recently discovered that firebase login --token <token>
is now deprecated.
What is the current recommended method for logging in to the Firebase CLI? Are there new commands or processes I need to follow to authenticate?
I need this specifically for use in GitLab pipelines. Any guidance would be appreciated. Thanks!
2
Answers
I had this issue too! Use
firebase login --no-localhost
. Follow the instructions, and it’ll spit out a token. Then, paste your authentication token into the terminal.See the documentation for Use the CLI with CI systems:
Basically, you’re being told to use the
FIREBASE_TOKEN
environment variable instead of--token
.