14. Firestore Database Collection Import / Export
QuickList ships with a set of seed collections (categories, currencies, countries, settings, etc.).
Import them into your Firestore database using the provided Node.js utility. To perform a Firebase Collection Import/Export:
14.1. Install Node.js from https://nodejs.org/en/download/.
14.2. Unzip the provided “Firebase Import Export Collections” package.
14.3. Configure the credentials.json file (service account). In the Firebase Console go to Project Settings → Service accounts → Node.js, click “Generate new private key”, and save the downloaded file as credentials.json.
14.4. Open a PowerShell/terminal window in the extracted folder (hold Ctrl+Shift, right-click → “Open PowerShell window here”).
14.5. Run the import / export commands:
To import all collections:
npx -p node-firestore-import-export firestore-import -a credentials.json -b collections.json
To export all collections:
npx -p node-firestore-import-export firestore-export -a credentials.json -b collections.json
Please Note: If you use a named database (e.g. staging), make sure the import tool targets the correct database, and always verify that your Firebase credentials in credentials.json are correct before running these commands.
