Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase emulators: auth data is not exported/imported?

I use Firebase emulators with the auth emulator (very happy with this new feature!)
I signup a user using email and password -> I can see it created in the emulator UI.
I insert some data in Firestore -> it works equally well. I export the data:

firebase emulators:export local_data

Later on, I restart the emulators with the exported data:

firebase emulators:start --import=local_data 

The Firestore data is loaded correctly, but the user I created previously does not exist!
It seems that the auth emulator data is not exported or not imported.
Am I doing something wrong?

Edit: this feature has been implemented by Firebase!

With CLI version > 9.1.0 one can export and import auth data from the emulators, cool!
see this Github announcement

like image 362
Louis Coulet Avatar asked Sep 20 '25 02:09

Louis Coulet


1 Answers

According to the documentation:

emulators:export export_directory

Cloud Firestore or Realtime Database emulator. Export data from a running Cloud Firestore or Realtime Database emulator instance

So the emulators:import and emulators:export commands currently only work on Cloud Firestore and Realtime Database. As Doug commented, it is a valid feature request, so thanks for filing it on the Github repo.

like image 62
Frank van Puffelen Avatar answered Sep 23 '25 04:09

Frank van Puffelen