July 2018
Intermediate to advanced
350 pages
8h 47m
English
Now that we have the content for the Google Cloud Function ready to go, let's look at the command that we need to run on our workstation so that we can deploy it to the Google Cloud Platform.
The command would look like this:
gcloud beta functions deploy <NAME> <TRIGGER>
In my case, I will be running the following command:
gcloud beta functions deploy firstlocalFunction --trigger-http --entry-point helloWorldHttp
You can see at the end I appended --entry-point as well to the command. By default, the gcloud CLI expects the same name of the Function be used in the module export for index.js. However if you prefer to use a different name than the Function, then you need to specify the argument.
The following ...
Read now
Unlock full access