我的firebase项目有多个实时数据库(RTDB)。当我有多个数据库时,如何使用命令行界面(CLI)更新特定数据库?
$ firebase database:update --help
Usage: database:update [options] <path> [infile]
update some of the keys for the defined path in your Firebase
Options:
-d, --data <data> specify escaped JSON directly
-y, --confirm pass this option to bypass confirmation prompt
-h, --help output usage information
我使用firebase use -add
选择了我的项目,但是与this question类似,帮助页面中没有关于定义数据库URL的任何内容。 node.js firebase-import和python firebase-streaming-import都包含数据库URL作为参数。
答案 0 :(得分:1)
事实证明,对此的支持已于version 3.19.0中发布。 firebase database:get --help
现在报告:
--instance <instance> use the database <instance>.firebaseio.com (if omitted, use default database instance)
因此,您应该可以使用它来指定数据库的速记实例名称。