5

I know we can set env variables in command line like this:

firebase functions:config:set slack.id="XXXX" slack.secret="XXXX"

But if we have too many env variables to set, can we put it in a file and import like this:

firebase functions:config:set env_variables.json

Thanks

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
derek
  • 9,358
  • 11
  • 53
  • 94

2 Answers2

1

The Firebase CLI does not have an option for this. What you can do instead is write a script to parse that JSON file and convert that into multiple arguments to pass to the CLI as needed.

You are also free to file a feature request with Firebase support.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441
1

At this moment it is not possible to put in a file your variables and import it. Here you can find an explained answer about this. I think it could be helpful for you.

Samuel Romero
  • 1,233
  • 7
  • 12