Created
July 7, 2021 03:13
-
-
Save callezenwaka/b0269a9ec8ae843d41ee90742015a8b1 to your computer and use it in GitHub Desktop.
Cloud Functions Config Env.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Refer to doc here <a href="https://firebase.google.com/docs/functions/config-env">Config Env. Setup</a> | |
# Set environment configuration for your project | |
``` | |
firebase functions:config:set someservice.key="THE API KEY" someservice.id="THE CLIENT ID" | |
``` | |
# Retrieve current environment configuration | |
``` | |
firebase functions:config:get | |
``` | |
# Access environment configuration in a function | |
``` | |
functions.config().someservice.id | |
``` | |
# Removes the specified keys from the config | |
``` | |
firebase functions:config:unset key1 key2 | |
``` | |
# Clones another project's environment into the currently active project | |
``` | |
firebase functions:config:clone --from <fromProject> | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment