如何从firebase cli切换应用程序? [英] How do I switch apps from the firebase cli?

查看:134
本文介绍了如何从firebase cli切换应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试使用firebase-这个应用程序,工具CLI与我的数据库进行交互。我可以毫无困难地登录,当我键入 firebase list 时,我得到了所有当前应用程序的列表。它也告诉我,我目前连接到哪个应用程序。



我的问题是,我想连接到其他应用程序之一。我正在我的舞台应用程序上运行查询,我需要在我的生产应用程序上运行它们。

想法?


<在运行 firebase list 的目录中,会有一个名为的文件, firebase.json 。如果你在文本编辑器中打开它,你会在那里看到应用程序名称。你可以在那里改变它,或者删除 firebase.json 来改变应用程序。

想想看,重新运行 firebase init 也可能有效。


This seems like something which should be pretty easy to do, but for whatever reason, I'm being defeated.

I'm trying to use the firebase-tools CLI to interact with my database. I'm able to login without any trouble, and when I type firebase list, I get a list of all my current apps. It also tells me which app I'm currently connected to.

My problem is, I want to connect to one of the other apps. I'm running queries on my staging app, and I need to run them on my production app. I can see the production app in the list, but I'm not finding any way to switch to that app.

Thoughts?

解决方案

In the directory where you run firebase list, there will be a file called firebase.json. If you open that in a text editor, you will see the app name in there. You can change it there or delete firebase.json to change the app.

Come to think of it, rerunning firebase init might also work.

这篇关于如何从firebase cli切换应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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