Home

Export JSON backup from Firestore

Gunar Gessner

Gunar Gessner

Jul 3, 2020

Google made it harder than it needed to be, so the community found a workaround. As long as we have npm installed, we can do this:

Export

npx -p node-firestore-import-export firestore-export -a credentials.json -b backup.json

Import

npx -p node-firestore-import-export firestore-import -a credentials.json -b backup.json

Credentials

Go to Firebase Console > Settings > Service accounts > Generate new private key.


Sign up for the newsletter


Read other stuff