{"repo":"jloosli/node-firestore-import-export","free":true,"listed":false,"github":"https://github.com/jloosli/node-firestore-import-export","clone":"git clone https://github.com/jloosli/node-firestore-import-export.git","description":"Firestore data import and export","language":"TypeScript","stars":391,"topics":["firestore","firebase","import","export","backup","restore"],"license":"MIT","category":"databases-storage","readme_excerpt":"node-firestore-import-export Firestore data importing, exporting, and data clearing tool. Export a Firestore database, including collections and documents, while keeping the structure intact. Table of Contents - Data format - Installation - Retrieving credentials - Usage - Command line - Export - Import - Clear - Library - Export - Import - Clear - Contributions Data Format Exports a json file with the following format: where collections holds the collections for a given document (or the root of the database). Imports need to be from a file with the same structure (e.g. from an exported file). Be careful! This can easily overwrite or mess up your data if you import to the wrong location. Special Datatypes Three types of data are serialized in the export: Timestamps Geopoints DocumentReferences They each are serialized in the following format: Installation Install using npm . or yarn Alternatively download the source. Retrieving Google Cloud Account Credentials 1. Visit the Firebase Console 1. Select your project 1. Navigate to Project Settings (at the time of writing the gear icon button at the top left of the page). 1. Navigate to Service Accounts 1. Click Generate New Private Key This downloaded json file contains the proper credentials needed for node-firestore-import-export to authenticate. Using Firebase Firestore Emulator If using Firebase Emulators, all commands (Export, Import, and Clear) will override the account credentials setting if the FIRESTORE EMULATOR HOST env","default_branch":null,"files":null,"tree":[],"storefront":"/r/jloosli","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jloosli/node-firestore-import-export/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}