Skip to content

CLI to update all documents with new field in a collection of Firebase Firestore Database

Notifications You must be signed in to change notification settings

shubham-chhimpa/fire-script-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FIRE SCRIPT CLI

GitHub license Github Followers GitHub stars GitHub forks GitHub watchers Twitter Follow

Table of Contents

Description

CLI to update all documents with a new field in a collection of Firebase Firestore Database

You need the service key json file which you can get by following these steps

Requirements

  1. You should have python 3
  2. Create a virtual environment
  3. Install the requirements
pip install -r requirements.txt

Usage

usage: fire-script-cli.py [-h] [-k KEY] [-c COLLECTION] [-f FIELD] [-v VALUE]

CLI to update all documents with new field in a collection of Firebase
Firestore Database

optional arguments:
  -h, --help            show this help message and exit
  -k KEY, --key KEY     Google Cloud Service Key File(JSON) path
  -c COLLECTION, --collection COLLECTION
                        Collection Name
  -f FIELD, --field FIELD
                        Field Name
  -v VALUE, --value VALUE
                        Field Value

Contribution

If you want to contribute to this library, you're always welcome! See Contributing Guidelines.

Contact

If you need any help, you can connect with me.

Visit : shubham-chhimpa.github.io

License

Copyright (c) 2020 Shubham Chhimpa

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

CLI to update all documents with new field in a collection of Firebase Firestore Database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages