通过 CLI 使用“--params”标志安装 Firebase 扩展不会绕过交互式提示

问题描述 投票:0回答:1

按照Bypass the interactive terminal prompts for parameter values during installation部分下的

官方文档
,我为扩展配置提供了
.env
文件,并通过
--params
标志传递它。但是安装命令仍然提示:

extensions: You will be charged around $0.01/month for the Firebase resources required by this extension (even if it is not used). Additionally, using this extension will contribute to your project's overall usage level of Firebase services. However, you'll only be charged for usage that exceeds Firebase's free tier for those services.

See pricing examples: https://cloud.google.com/functions/pricing#pricing_examples
See the FAQ: https://firebase.google.com/support/faq/#extensions-pricing


? Do you wish to continue?

extensions: Resize Images will be granted the following access to project quaza-staging-f5446
- Storage Admin (Full control of GCS resources.)
? Would you like to continue?

我在这里遗漏了什么吗?

附注除了提示之外,安装进行得很顺利,所以我认为我设置

.env
文件的方式没有任何问题。

firebase firebase-cli firebase-extensions
1个回答
0
投票

我有好消息和坏消息要告诉你。 根据

firebase ext:install --help
你可以使用:

  -f, --force  automatically accept all interactive prompts

但是这没有多大用处,因为该命令似乎不再接受

--params

firebase ext:install algolia/firestore-algolia-search --params=./utils/algolia/en_algolia.env --project=my-project-id

error: unknown option '--params'

© www.soinside.com 2019 - 2024. All rights reserved.