Firebase emulators cheat sheet

Firebase emulators cheat sheet
gcp
firebase
Published

July 18, 2022

Start emulator localy with saved data

firebase emulators:start --import .\data\

Save data from emulator to file

firebase emulators:export ./data/

Sample output

i  Found running emulator hub for project orfeondegranada-c6f3e at http://localhost:4400
? The directory C:\Users\polit\sources\orfeonapp\data already contains export data. Exporting again to the same director
y will overwrite all data. Do you want to continue? Yes
i  Exporting data to: C:\Users\polit\sources\orfeonapp\data
+  Export complete

publish the functions to firebase

firebase deploy --only functions

References: https://firebase.google.com/docs/functions/manage-functions#modify