Zach Minner
Firebase

How to run Pub/Sub Firebase functions when using the Firebase emulators

Once you have the emulators running, in a separate terminal window run this command:

firebase functions:shell

Then you can run any Pub/Sub (cron) function you want by typing out the function name and hitting enter.

(i) functions: Connected to running firestore emulator at localhost:8080, calls to this service will affect the emulator
firebase > myFunction()

Solution source