
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
@google-cloud/functions-emulator
Advanced tools
Disclaimer: This is not an official Google product.
Table of Contents
functions --helpThe Google Cloud Functions Emulator is a Node.js application that implements the Google Cloud Functions API, and includes a CLI with which you can manage the application.
The Emulator allows you to deploy, run, and debug your Cloud Functions on your local machine before deploying them to the production Google Cloud Functions service.
The Emulator only supports Node v6.x.x. It does not support Node v8.x.x or Python.
Write a function:
mkdir helloWorld
cd helloWorld
touch index.js
echo 'exports.helloWorld = (req, res) => res.send("Hello, World!");' > index.js
Install the Emulator:
NPM:
npm install -g @google-cloud/functions-emulator
Yarn:
yarn global add @google-cloud/functions-emulator
Or read more in the detailed installation instructions.
Start the Emulator:
functions start
Deploy your function:
functions deploy helloWorld --trigger-http
Get help deploying a function with functions deploy --help.
Call your function:
functions call helloWorld
View the logs:
functions logs read
For a quick reference, the Emulator CLI is self-documenting. Run the following to get help with the CLI:
functions --help
For everything else see the How-To Guides.
To give feedback, report a bug, or request a feature, please open an issue.
To contribute a change, check out the contributing guide.
Copyright 2017, Google, Inc.
Licensed under the Apache License, Version 2.0
See the full license.
FAQs
Google Cloud Functions Emulator
The npm package @google-cloud/functions-emulator receives a total of 1,542 weekly downloads. As such, @google-cloud/functions-emulator popularity was classified as popular.
We found that @google-cloud/functions-emulator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.