Transfer registered users from one firebase app to another

后端 未结 3 1654
逝去的感伤
逝去的感伤 2021-02-04 02:56

My firebase app has a list of registered users. These were created with Email & Password Authentication.

I want to transfer the firebase data and the list of users t

3条回答
  •  醉酒成梦
    2021-02-04 03:32

    You should use the Firebase admin tools.

    You may install the admin tools using this command:

    npm install -g firebase-tools
    

    Export command, that generates the AllUsers.json file:

    firebase auth:export AllUsers.json --project projectId
    

    On the other account use the following command to import the generated file.

    firebase auth:import AllUsers.json --project projectId
    

提交回复
热议问题