gpt4 book ai didi

firebase - 如何以非交互方式安装 firebase 扩展

转载 作者:行者123 更新时间:2023-12-01 23:51:30 25 4
gpt4 key购买 nike

我正在尝试通过 firebase CLI 安装 firebase firestore-bigquery-export 扩展。但是我找不到如何以非交互式方式安装扩展。

我需要它,因为我有多个环境和 CI。

控制台包含有关 的信息,但我在哪里可以找到参数名称?

$ firebase ext:install firestore-bigquery-export -h
Usage: firebase ext:install [options] [extensionName]

install an official extension if [extensionName] or [extensionName@version] is provided; or run with `-i` to see all available extensions.

Options:
--params <paramsFile> name of params variables file with .env format.
-h, --help output usage information

感谢您的帮助!

最佳答案

如解释here在文档中(展开“在安装过程中绕过交互式终端提示输入参数值”部分),您需要:

  1. Create a .env file (for example, params.env) that defines yourparameter values. Save the file locally.
  • Declare each parameter by its param value found in the extension's extension.yaml file.
  • Include values for all the parameters.
  • Follow dotenv syntax.
  1. Run the extension-install command with the --params flag.For example, to install the Translate Text extension, run the following command: firebase ext:install firestore-translate-text --params=path/to/params.env --project=projectID-or-alias

要找到给定扩展的 extension.yaml 文件,您需要查看其源代码。要找到一个官方 Firebase 扩展的源代码链接,您需要在 Firebase Extensions 产品页面或 Firebase 控制台中点击扩展卡上的“了解更多”。

关于firebase - 如何以非交互方式安装 firebase 扩展,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63407344/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com