LinuxCommandLibrary

gcloud-projects

Manage project access policies in Google Cloud.

TLDR

Create a new project

$ gcloud projects create [project_id|project_number]
copy


List all active projects
$ gcloud projects list
copy


Display metadata for a project
$ gcloud projects describe [project_id]
copy


Delete a project
$ gcloud projects delete [project_id|project_number]
copy


Add an IAM policy binding to a specified project
$ gcloud projects add-iam-policy-binding [project_id] --member [principal] --role [role]
copy

Copied to clipboard