Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Google Cloud Platform logo

Google Cloud Functions Hello World sample

This is a basic hello world sample that shows a single exported function.

View the documentation or the source code.

Deploy

This example deploys the function with an HTTP trigger.

gcloud alpha functions deploy helloworld --bucket <your-bucket-name> --trigger-http

Test

gcloud alpha functions call helloworld

Running the above command should print "Hello World!".

You can also use curl to trigger the function:

curl -X POST https://<your-project-region>.<your-project-id>.cloudfunctions.net/helloworld