To re-initialize account
gcloud init
Manage accounts using gcloud auth
gcloud auth list
Tutorial: https://cloud.google.com/functions/docs/quickstart#functions-prepare-environment-nodejs Sample project: https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git
Deploy
gcloud functions deploy helloGET --runtime nodejs6 --trigger-http
Get url
gcloud functions describe helloGET
Call the function
gcloud functions call helloGET
Create a bucket
gsutil mb gs://jrumjantsev-bucket2
Copy image from one bucket to another
gsutil cp image.png gs://jrumjantsev-bucket2
gcloud compute instances create learn-1 --zone=us-east1-b --machine-type=f1-micro --subnet=default
gcloud compute instances create learn-2 --zone=us-east1-b --machine-type=f1-micro --subnet=learnauto
gcloud compute instances create learn-3 --zone=us-east1-b --machine-type=f1-micro --subnet=subnet-1a
gcloud compute instances create learn-4 --zone=us-east1-c --machine-type=f1-micro --subnet=subnet-1b
gcloud compute instances create learn-5 --zone=us-west1-a --machine-type=f1-micro --subnet=subnet-2