1 | initial version |
The schema structure of Firestore can be exported to a JSON file using the Firebase CLI command line tool. Here are the steps:
npm install -g firebase-tools
.firebase login
.firebase init firestore
to initialize the Firestore configuration file.firebase firestore:export <path/to/destination.json>
to export the schema structure to a JSON file.Note that this will only export the schema structure, not the data in the Firestore database. To export the data, you can use the firebase firestore:export
command with the --export-data
flag.