Dow*_*llo 2 command-line batch-file firebase firebase-tools firebase-realtime-database
标题基本概括了所有内容。对于我的一个网站,我有一台运行批处理文件的服务器计算机,该文件在为用户执行操作后更新数据库。完成此操作后,它会删除用户对数据库的请求。如何自动执行删除数据库中某些内容的过程?如何跳过 y/n 确认(我知道对于某些命令,您可以使用 /q 或 /s,但我似乎找不到 Firebase 命令的 /q 版本)?答案应该是批量的。
使用-f
或--force
. 来自 CLI 帮助文本:
Usage: firebase database:remove [options] <path>
remove data from your Firebase at the specified path
Options:
-f, --force pass this option to bypass confirmation prompt
--instance <instance> use the database <instance>.firebaseio.com (if omitted, use default database instance)
-h, --help output usage information
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
986 次 |
最近记录: |