Firebase Remote Config Management Tool. This tool enables synchronization of data between a local file and Firebase Remote Config.
- Synchronize Remote Config data between a local file and Firebase.
- Show diff between local file and Firebase.
- Download defaults files for Android and iOS.
- Node.js v18.x above
Add dependencies this repository url.
{
"dependencies": {
"firebase-remote-config-cli": "[email protected]:yasuhiroki/firebase-remote-config-cli.git"
}
}
https://firebase.google.com/docs/admin/setup#initialize_the_sdk_in_non-google_environments
$ frc checkout --json FIREBASE_CREDENTIALS_JSON_PATH
saved remote config values to parameters
and parameterGroups
directory.
$ frc publish --json FIREBASE_CREDENTIALS_JSON_PATH
--json
(required) firebase credentials json file path--path
root path of parameters directory (default: "./")--format
checkout file format "yaml" or "json" (default: "yaml")--debug
print debug log--dryrun
do not run writing and publishing
- checkout
- Checkout parameters to local file from Firebase.
- validate
- Validate local file parameters.
- diff
- Show diff parameters between local file and Firebase.
- publish
- Publish parameters to Firebase.
- If use
-f
option, skip confirmation.
- download
- Download default files to
default.xml
anddefault.plist
on pwd.
- Download default files to
# checkout remote config values to ./output directory
frc checkout --json FIREBASE_CREDENTIALS_JSON_PATH --path ./output
# publish force
frc publish -f --json FIREBASE_CREDENTIALS_JSON_PATH
# download defaults file
frc download --json FIREBASE_CREDENTIALS_JSON_PATH