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:
npx -p node-firestore-import-export firestore-export -a credentials.json -b backup.json
npx -p node-firestore-import-export firestore-import -a credentials.json -b backup.json
Go to Firebase Console > Settings > Service accounts > Generate new private key.