如何使用命令行部署Firebase数据库安全规则? [英] How do I deploy Firebase Database Security rules using the command line?
问题描述
firebase.json
文件中添加规则
部分,然后上传我们如何使用 firebase-tools
v3命令行工具来部署每个部署的新安全规则。数据库安全规则? 此页表示可以这样做:Firebase存储规则
本页面提示命令行工具可以实现,但 firebase --help
和 firebase部署 - 帮助
似乎没有暗示如何做到这一点? (道歉,如果我错过了...)
(相关:哪里是所有可以进入 谢谢! 您可以查看 Firebase CLI参考资料了解更多信息 In older versions of Firebase, we could add a How do we use the This page says that it's possible: "Rules for Firebase Storage" This page hints that the command line tools can do it, but (related: where is the canonical doc for everything that can go into Thanks! You can use You can check out Firebase CLI Reference for more info 这篇关于如何使用命令行部署Firebase数据库安全规则?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋! firebase.json
?我在旧的Firebase网站上找到了它,但无法通过搜索新文档找到它。)
firebase deploy --only database
如果您只想更新数据库规则。它会覆盖您现有的规则。
rules
section to our firebase.json
file, and upload new security rules on every deploy.firebase-tools
v3 command-line tools to deploy database security rules?firebase --help
and firebase deploy --help
don't seem to hint at how to do it? (Apologies if I missed it...)firebase.json
? I found it on the old Firebase site, but can't find it via search on the new docs.)firebase deploy --only database
if you only want to update database rules. It will overwrite your existing rules.