Firestore is a command line utility to facilitate operations with Firestore from the command line.
export PROJECT_ID=my-project
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json
firestore document cp /my-collection/my-document /my-collection/another-document
- delete
- move
- copy
- download
- add
- copy
- delete
- download
- upload
- query
To use this tool with the Firestore Emulator you must set the FIRESTORE_EMULATOR_HOST
environment variable to the appropriate value. For example:
export FIRESTORE_EMULATOR_HOST=localhost:9090