Command-Line Tool Reference

Google Cloud Functions exposes a command line interface via the gcloud command-line tool. If you followed the Quickstart, you should already have the gcloud tool installed.

Authentication

To authenticate the gcloud tool, execute:

gcloud auth login

Methods

To see the full list of the gcloud tool's methods for Cloud Functions, execute:

gcloud beta functions -h

You can view the gcloud beta functions reference here.

Common commands available are:

call        Call function synchronously for testing.
delete      Deletes a given function.
deploy      Creates a new function or updates an existing one.
describe    Show description of a function.
logs read   Show logs produced by functions.
list        Lists all the functions in a given region.

You can view detailed help for a single command by using the -h flag. For example:

gcloud beta functions call -h

Send feedback about...

Cloud Functions Documentation