snippetbashTip
gcloud projects — Manage project access policies in Google Cloud. See also: `gcloud`. More information: <https://docs.
Viewed 0 times
policiescommandaccessgcloud projectsmanagecligoogleproject
Problem
How to use the
gcloud projects command: Manage project access policies in Google Cloud. See also: gcloud. More information: <https://docs.cloud.google.com/sdk/gcloud/reference/projects>.Solution
gcloud projects — Manage project access policies in Google Cloud. See also: gcloud. More information: <https://docs.cloud.google.com/sdk/gcloud/reference/projects>.Create a new project:
gcloud projects create {{project_id|project_number}}List all active projects:
gcloud projects listDisplay metadata for a project:
gcloud projects describe {{project_id}}Delete a project:
gcloud projects delete {{project_id|project_number}}Add an IAM policy binding to a specified project:
gcloud projects add-iam-policy-binding {{project_id}} --member {{principal}} --role {{role}}Code Snippets
Create a new project
gcloud projects create {{project_id|project_number}}List all active projects
gcloud projects listDisplay metadata for a project
gcloud projects describe {{project_id}}Delete a project
gcloud projects delete {{project_id|project_number}}Add an IAM policy binding to a specified project
gcloud projects add-iam-policy-binding {{project_id}} --member {{principal}} --role {{role}}Context
tldr-pages: common/gcloud projects
Revisions (0)
No revisions yet.