firebasecodeshipfirebase-tools

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


Solution

  • See wvm2008's answer for a more up to date version

    One option would be to mint a token for the build server and pass it into the CLI with:

    firebase --token <token>
    

    You can also get a token from a system where you interactively logged in with:

    firebase login:ci
    

    See this page for more options.