List all of the current logins
gcloud auth list
Change the active account
gcloud config set account <account email>
List the current configuration
gcloud config list
Change the current project
gcloud config set project <project id>
Displays all of the current configuration and info about the Gcloud CLI
gcloud info
Deploy application using default app.yaml file to GAE
gcloud app deploy app.yaml
Cloud functions can be deployed on nodejs 8 or 10.
Deploy cloud function (http trigger):
gcloud function deploy 'testfunc' --runtime nodejs8 \ --trigger-http --entry-point=myFunction
Deploy cloud function (event trigger):
gcloud functions deploy helloPubSub --runtime nodejs10 \ --trigger-topic YOUR_TOPIC_NAME
List available cloud function event types:
gcloud functions event-types list
gcloud functions logs read --limit 50
gcloud pubsub topics create YOUR_TOPIC_NAME
gcloud pubsub topics publish YOUR_TOPIC_NAME --message YOUR_MESSAGE
gcloud tasks queues create [QUEUE_ID]
gcloud tasks queues describe [QUEUE_ID]
gcloud tasks queues list
gcloud tasks queues create [QUEUE_ID] --log-sampling-ratio=1.0