Difference between revisions of "Gcloud projects list"
Jump to navigation
Jump to search
(27 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
https://cloud.google.com/sdk/gcloud/reference/projects | https://cloud.google.com/sdk/gcloud/reference/projects | ||
+ | |||
+ | * <code>[[gcloud projects]] list</code> | ||
+ | * <code>[[gcloud projects list --help]]</code> | ||
+ | |||
+ | gcloud projects list | ||
+ | [[PROJECT_ID]] NAME PROJECT_NUMBER | ||
+ | your-projectname-328717 YourName 660007759999 | ||
+ | |||
[[gcloud projects]] list | [[gcloud projects]] list | ||
+ | PROJECT_ID NAME PROJECT_NUMBER | ||
+ | your-projectname-1 YourProjectName 120007758888 | ||
+ | your-projectname-2 YourProjectName 450007757777 | ||
+ | |||
+ | gcloud projects list | ||
+ | Listed 0 items. | ||
+ | == Errors not authenticated == | ||
+ | gcloud projects list | ||
+ | WARNING: Could not open the configuration file: [/your_path/[[.config/]]gcloud/configurations/config_default]. | ||
+ | ERROR: (gcloud.projects.list) You do not currently have an active account selected. | ||
+ | Please run: | ||
+ | |||
+ | $ [[gcloud auth login]] | ||
+ | |||
+ | to obtain new credentials. | ||
+ | |||
+ | If you have already logged in with a different account: | ||
+ | |||
+ | $ [[gcloud config set account]] ACCOUNT | ||
+ | |||
+ | to select an already authenticated account to use. | ||
+ | == Related == | ||
+ | * <code>[[gcloud config set project]] [[YOUR-PROJECT-NAME]]</code> | ||
+ | * <code>[[az devops project list]]</code> | ||
+ | * <code>[[gcloud projects get-iam-policy]]</code> | ||
+ | * <code>[[gcloud organizations list]]</code> | ||
+ | * <code>[[gcloud auth activate-service-account --key-file]]</code> | ||
== See also == | == See also == | ||
− | * {{gcloud}} | + | * {{gcloud projects}} |
[[Category:GCP]] | [[Category:GCP]] |
Latest revision as of 10:01, 22 November 2023
https://cloud.google.com/sdk/gcloud/reference/projects
gcloud projects list PROJECT_ID NAME PROJECT_NUMBER your-projectname-328717 YourName 660007759999
gcloud projects list PROJECT_ID NAME PROJECT_NUMBER your-projectname-1 YourProjectName 120007758888 your-projectname-2 YourProjectName 450007757777
gcloud projects list Listed 0 items.
Errors not authenticated[edit]
gcloud projects list WARNING: Could not open the configuration file: [/your_path/.config/gcloud/configurations/config_default]. ERROR: (gcloud.projects.list) You do not currently have an active account selected. Please run: $ gcloud auth login to obtain new credentials. If you have already logged in with a different account: $ gcloud config set account ACCOUNT to select an already authenticated account to use.
Related[edit]
gcloud config set project YOUR-PROJECT-NAME
az devops project list
gcloud projects get-iam-policy
gcloud organizations list
gcloud auth activate-service-account --key-file
See also[edit]
Advertising: