Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tznind/nfirestore-cli
https://github.com/tznind/nfirestore-cli
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tznind/nfirestore-cli
- Owner: tznind
- License: mit
- Created: 2024-03-19T19:24:30.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-08-22T04:10:03.000Z (3 months ago)
- Last Synced: 2024-10-11T19:27:04.064Z (about 1 month ago)
- Language: C#
- Size: 55.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nfirestore-cli
This is a dotnet tui for interacting with Firestore databases.
It is based on [firestore-cli](https://github.com/Ion-manden/firestore-cli/tree/main) a Go application with similar remit.
Expanded functionality includes
- Support for nested collections
- Configurable query limit (defaults to 100)
![demo gif](https://github.com/tznind/nfirestore-cli/assets/31306100/e34902c2-0830-4f63-959c-64171142c7bf)## Install and Run
Install the tool by running
```
dotnet tool install --global nfirestore-cli
```You can then run with
```
nfirestore-cli --help
```Supports connecting to an emulator (e.g. a docker container running [mtlynch/firestore-emulator](https://github.com/mtlynch/firestore-emulator-docker)) by using the `-e` parameter:
```
nfirestore-cli -e localhost:8200 -p test
```To connect to Google Cloud you will need to run gcloud auth - see [Google Docs for full details](https://cloud.google.com/docs/authentication/provide-credentials-adc#how-to). For example:
```
gcloud auth application-default login
nfirestore-cli -p my-project
gcloud auth application-default revoke
```## Update/Remove
You can update to the latest version using
```
dotnet tool update --global nfirestore-cli
```You can uninstall using
```
dotnet tool uninstall --global nfirestore-cli
```## Development
Enter the project root and start the firestore emulator:
```
docker-compose up
```Build and run the program
```
dotnet run
```