Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 563
atardadi Avatar asked Nov 26 '15 12:11

atardadi


People also ask

How do I access Firebase terminal?

Windows. Download the standalone binary for the CLI. Then, you can access the executable to open a shell where you can run the firebase command. Use npm (the Node Package Manager) to install the CLI and enable the globally available firebase command.

What is CLI Firebase?

Firebase CLI. The Firebase Command Line Interface (CLI) Tools can be used to test, manage, and deploy your Firebase project from the command line. Deploy code and assets to your Firebase projects. Run a local web server for your Firebase Hosting site. Interact with data in your Firebase database.

Which command is used for deploying a Firebase hosted application?

Using the Firebase CLI, you deploy files from local directories on your computer to our Hosting servers. Beyond serving static content, you can use Cloud Functions for Firebase or Cloud Run to serve dynamic content and host microservices on your sites.


1 Answers

firebase login --no-localhost is what worked for me. You get the Authorisation code from browser which you need to paste into your terminal window.

like image 53
tw56 Avatar answered Oct 07 '22 04:10

tw56