Code Monkey home page Code Monkey logo

firebase-remote-config's Introduction

Firebase Remote Config export

Export and publish Firebase configurations.

Installation and configuration

This code depends on Python 3 and pip.

Install dependencies with

pip3 install --user -r requirements.txt

Download the service file of the Firebase project you intend to use:

  1. Go to your Firebase project in https://console.firebase.google.com.
  2. Then go to Project Settings (gear icon) -> Service Accounts tab and click the "Generate new private key" button. This will start a download. Rename the downloaded file to service-account.json and move the file to the current directory.
  3. Enable the Google API for Firebase Remote Config of your project.

Usage

Run

./firebase-remote-config get

to download the latest configuration of the stored service account file. To use an alternative service account file, use the -s option, to use an alternative output file, use the -f option:

./firebase-remote-config get -f output.json -s ~/Downloads/my-long-service-file.json

The get command will print a so-called ETag. To publish a new version of the configuration, that ETag needs to be supplied to avoid version conflicts:

./firebase-remote-config publish -f output.json etag-123345-32

License

This code is published under the Apache License version 2.0. It is based on firebase/quickstart-python.

firebase-remote-config's People

Contributors

blootsvoets avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

firebase-remote-config's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.