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": "git@github.com: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_PATHsaved remote config values to parameters and parameterGroups directory.
$ frc publish --json FIREBASE_CREDENTIALS_JSON_PATH--json(required) firebase credentials json file path--pathroot path of parameters directory (default: "./")--formatcheckout file format "yaml" or "json" (default: "yaml")--debugprint debug log--dryrundo 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
-foption, skip confirmation.
- download
- Download default files to
default.xmlanddefault.pliston 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