czphilip
czphilip

Reputation: 957

Install Firebase Extension via CLI with `--params` flag does not bypass interactive prompts

Following the official docs here under the Bypass the interactive terminal prompts for parameter values during installation section, I have provided the extension configs with a .env file and passing it through the --params flag. However, the installation command still prompts:

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?

and

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?

Am I missing something here?

P.S. the install went well besides the prompts so I assume there is nothing wrong with how I setup my .env file.

Upvotes: 1

Views: 196

Answers (1)

Davie
Davie

Reputation: 161

I have good news and bad news for you. According to firebase ext:install --help you can use:

-f, --force automatically accept all interactive prompts

However this is a not much use as it seem that the command no longer accepts --params

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

error: unknown option '--params'

These days you can accomplish this via the Extensions Manifest - see https://firebase.google.com/docs/extensions/manifest

Upvotes: 0

Related Questions