jayluxferro / firestore-export-import

Export and Import Collection from Firestore Database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Export/Import Firestore Database Collection

  1. Clone project.
  2. Install node_modules
npm install --save

Usage

  1. Export collection
    node import.js [Path to Service Account Key] [Database URL] [Collection Name]
node export.js ./serviceAccountKey.json https://test.firebaseio.com test_db
  1. Import collection
    node import.js [Path to Service Account Key] [Database URL] [Collection JSON File Name]
node import.js ./serviceAccountKey.json https://test.firebaseio.com test_db

About

Export and Import Collection from Firestore Database


Languages

Language:JavaScript 100.0%