Command-line tool for querying/updating firestore
Project description
Firestore CLI
This repository contains command-line tools for querying and updating Firestore collections.
Installation
-
Clone the repository:
git clone https://github.com/cdiddy77/firestore-cli.git cd firestore-cli
-
Install dependencies using Poetry:
poetry install
Usage
Querying Firestore
The fsquery.py script allows you to query Firestore collections.
Command Line Arguments
--credentials: Path to Firebase credentials JSON (optional, defaults toGOOGLE_APPLICATION_CREDENTIALSenvironment variable).--path: Path to Firestore collection (required).--group: Whether this is a group query (optional).--where: Query in the formatfield:operation:value(optional, can be used multiple times).--id: Query for a specific document ID (optional).--orderby: Field to order by, followed byASCENDINGorDESCENDING(optional, can be used multiple times).--limit: Limit the number of results (optional).
Example
poetry run python [fsquery.py](http://_vscodecontentref_/2) --path "your-collection-path" --where "field:==:value" --limit 10
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
firestore_cli-0.1.0.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file firestore_cli-0.1.0.tar.gz.
File metadata
- Download URL: firestore_cli-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f59d86c2aa12c6b9640b53bbffe99ed38fdd6f6035f39870269d223c249e3c6
|
|
| MD5 |
88bdbeebdfd0489283fd3cfe7f4e49cb
|
|
| BLAKE2b-256 |
c5a159268f6d47cfe1d1733e5431bbae6b891441f1ad972f726973ec3cd12f62
|
File details
Details for the file firestore_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: firestore_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.9 Darwin/24.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89b0ffeabd1195ffd2521038b9fa5b6feba0db03706bc0b70f94f4bbcce8f18a
|
|
| MD5 |
68d5dddb86fe55928e1279fb6b40db36
|
|
| BLAKE2b-256 |
ddff362d9cd390cfebccecbf64c68e582b1baa94568765ea9cee4e9025a8f04f
|