A command-line interface and terminal user interface (TUI) tool to query and manage Firestore data.
- CLI Commands: Full CRUD operations, queries with filters, batch operations, and export/import
- Interactive TUI: Browse collections, view documents, and manage data visually
- Flexible Authentication: Support for both service account JSON files and Application Default Credentials
# Using UV (recommended)
uv pip install -e .
# Or using pip
pip install -e .Configure your Firestore connection:
# Using service account
fayastore config --project my-project --credentials /path/to/service-account.json
# Using Application Default Credentials (gcloud auth)
fayastore config --project my-projectOr set environment variables:
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
export FIRESTORE_PROJECT=my-projectfayastore get users/abc123fayastore list users --limit 10fayastore create users --id abc123 --data '{"name": "John", "age": 30}'fayastore update users/abc123 --data '{"age": 31}'fayastore delete users/abc123fayastore query users --where "age>25" --where "status=active" --order "name:asc" --limit 10fayastore count users --where "status=active"fayastore export users -o users.jsonfayastore import users -i data.jsonfayastore batch operations.jsonLaunch the interactive terminal user interface:
fayastore tui| Key | Action |
|---|---|
q |
Quit |
r |
Refresh |
n |
New document |
e |
Edit selected |
d |
Delete selected |
/ |
Search/filter |
? |
Help |
MIT