Home > Software engineering >  Firebase user import / export
Firebase user import / export

Time:08-20

Does anyone know how to migrate users from one firebase project to another and keep the same uid ?

Ideally the uid would be the same in the target project since I have in the db tied records to the uid

Is it possible to keep the uid the same in target project ?

The source project would then be deleted

CodePudding user response:

You can use the specific auth:export and auth:import commands of the Firebase CLI:

  • The auth:export command exports user accounts to JSON and CSV files.
  • The auth:import command imports user accounts into Firebase projects.
  • Related