This is a dotnet tui for interacting with Firestore databases.
It is based on firestore-cli a Go application with similar remit.
Expanded functionality includes
- Support for nested collections
- Configurable query limit (defaults to 100)
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) 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. For example:
gcloud auth application-default login
nfirestore-cli -p my-project
gcloud auth application-default revoke
You can update to the latest version using
dotnet tool update --global nfirestore-cli
You can uninstall using
dotnet tool uninstall --global nfirestore-cli
Enter the project root and start the firestore emulator:
docker-compose up
Build and run the program
dotnet run