How to run gcloud command line using a service account Step-by-step 1) Create a Service Account gcloud iam service - accounts create gcpcmdlineuser -- display - name "GCP Service Account" 2) List the users gcloud iam service - accounts list -- filter gcpcmdlineuser@someproject.gserviceaccount.com 3) Download the service account key gcloud iam service - accounts keys create . / somekey.json -- iam - account <EMAIL ADDRESS> gcloud iam service - accounts keys create gcpcmdlineuser.json -- iam - account gcpcmdlineuser@someproject.iam.gserviceaccount.com 4) Associate a ROLE gcloud iam roles create <ROLE NAME> -- project <YOUR PROJECT ID> -- file . / rolename.yaml gcloud projects add - iam - policy - binding someprojecthere -- member "serviceAccount:gcpcmdlineuser@someproject.iam.gserviceaccount.com" -- role "roles/owner" gcloud projects add - iam - policy - binding <PROJECT ID> -- role <RO...