Firebase工具从命令行登录 [英] Firebase tools login from command line

查看:73
本文介绍了Firebase工具从命令行登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Codeship部署firebase应用.为此,我首先需要使用 firebase login 命令登录.问题是,我需要在浏览器中登录,然后返回命令行并执行部署.是否有一种自动的方式向Firebase提供凭据?

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?

欢呼

推荐答案

有关更多信息,请参见 wvm2008的答案最新版本

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

一种选择是为构建服务器创建令牌并通过以下命令将其传递到CLI中:

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 prefs:token

有关更多选项,请参见此页面.

See this page for more options.

这篇关于Firebase工具从命令行登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆