CmdID

CmdID / Commands

gcloud-iam

Configure Identity and Access Management (IAM) preferences and service accounts. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

List IAM grantable roles for a resource

gcloud iam list-grantable-roles resourceIdentify

Create a custom role for an organization or project

gcloud iam roles create role_name --organization organization --file path/to/role.yamlIdentify

Create a service account for a project

gcloud iam service-accounts create nameIdentify

Add an IAM policy binding to a service account

gcloud iam service-accounts add-iam-policy-binding service_account_email --member member --role roleIdentify

Replace existing IAM policy binding

gcloud iam service-accounts set-iam-policy service_account_email policy_fileIdentify

List a service account's keys

gcloud iam service-accounts keys list --iam-account service_account_emailIdentify