Easily transfer data between firebase projects.
- Existing ones don't provide features to handle inter-project data management.
- Official solution does not allow eu/us data movement
pip install firebase-data
fdata export --service_account_path=./svc.dev.json --collection=foos --output_path=./data
fdata import --service_account_path=./svc.prod.json --collection=foos --input_path=./data
fdata auth:export --service_account_path=./svc.dev.json --output_path=./data
No need to reinvent the wheel here, use firebase-cli.
export GOOGLE_APPLICATION_CREDENTIALS=./svc.dev.json
firebase use my-project
firebase firestore:delete foos --recursive
- Not optimized for large collections (your PC will explose)
- Only one collection depth, i.e. foos/{fooId}/bars/{barId}
- import/export Firestore (depth one)
- export Firebase authentication
- delete Firebase collection
- import Firebase authentication
- use transactions
- parallelize/optimize
- import+export as single call
- other firebase data
firebase login
firebase init
- Update version in
setup.py
git add .
git commit -m "my message"
git push
git tag v1.0.0
git push origin v1.0.0