Exporting user accounts from Firebase to local emulator

Steps to export user accounts from Firebase to local emulator.

1. Login to Firebase or Google Cloud:

firebase login

2. Connect to your project:

firebase use your-project-name

3. Export your project user accounts to the emulator:

firebase --project your-project-name auth:export /path/to/workspace/emulator/.emulator-data/auth_export/accounts.json

Next time you start emulators, all users and roles will be listed.

Last updated