Guide: https://github.com/GoogleCloudPlatform/cloud-functions-emulator
In zsh: functions-emulator
There is an implicit watch, you can change the code, next time invoke it'll with new function: googlearchive/cloud-functions-emulator#62
Serverless + cloud function emulator serverless/serverless-google-cloudfunctions#74