Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save callezenwaka/b0269a9ec8ae843d41ee90742015a8b1 to your computer and use it in GitHub Desktop.
Save callezenwaka/b0269a9ec8ae843d41ee90742015a8b1 to your computer and use it in GitHub Desktop.
Cloud Functions Config Env.
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