Firebase Cloud Functionsの環境変数にJSONをサクッと設定する方法


Accept JSON file for functions:config:set · Issue #406 · firebase/firebase-tools

Currently, it is possible to get the whole functions config as a JSON file using firebase functions:config:get, but we have to manually inline each variable when using the firebase functions:config...
firebase functions:config:set service_account="$(cat service_account.json)"


firebase functions:config:set service_account.(jq -r 'to_entries[] | [.key, (.value | tojson)] | join("=")' < service_account.json  )
Share Comments
comments powered by Disqus