Skip to main content

Command-line tool for querying/updating firestore

Project description

Firestore CLI

This repository contains command-line tools for querying and updating Firestore collections.

Installation

  1. Clone the repository:

    git clone https://github.com/cdiddy77/firestore-cli.git
    cd firestore-cli
    
  2. 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 to GOOGLE_APPLICATION_CREDENTIALS environment variable).
  • --path: Path to Firestore collection (required).
  • --group: Whether this is a group query (optional).
  • --where: Query in the format field:operation:value (optional, can be used multiple times).
  • --id: Query for a specific document ID (optional).
  • --orderby: Field to order by, followed by ASCENDING or DESCENDING (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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

firestore_cli-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

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

Hashes for firestore_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2f59d86c2aa12c6b9640b53bbffe99ed38fdd6f6035f39870269d223c249e3c6
MD5 88bdbeebdfd0489283fd3cfe7f4e49cb
BLAKE2b-256 c5a159268f6d47cfe1d1733e5431bbae6b891441f1ad972f726973ec3cd12f62

See more details on using hashes here.

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

Hashes for firestore_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 89b0ffeabd1195ffd2521038b9fa5b6feba0db03706bc0b70f94f4bbcce8f18a
MD5 68d5dddb86fe55928e1279fb6b40db36
BLAKE2b-256 ddff362d9cd390cfebccecbf64c68e582b1baa94568765ea9cee4e9025a8f04f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page