Functions

Notes: Local emulator, Create, Start emulator, Deploy, and Call.

Local emulator

https://github.com/GoogleCloudPlatform/cloud-functions-emulator

Install.

npm install -g @google-cloud/functions-emulator

Create

Create mkdir <Project>
Create cd <Project>
Create echo 'exports.<Project> = (req, res) => res.send("Hello, World!");' > index.js

Touch index.js.

Start emulator

Functions start.

Deploy

Deploy functions deploy <project>  --trigger-http

Call

Call functions call <project>

Log

Functions logs read.

Documentation

Functions --help
Updated: 2026 Aug 19