Difference between revisions of "Gcloud projects create"
Jump to navigation
Jump to search
(→Errors) |
|||
| Line 30: | Line 30: | ||
* <code>[[gcloud billing projects link]] my-new-project [[--billing-account]]=0X0X0X-0X0X0X-0X0X0X</code> | * <code>[[gcloud billing projects link]] my-new-project [[--billing-account]]=0X0X0X-0X0X0X-0X0X0X</code> | ||
* <code>[[gcloud billing accounts list]]</code> | * <code>[[gcloud billing accounts list]]</code> | ||
| + | * <code>[[gcloud projects get-iam-policy]]</code> | ||
== See also == | == See also == | ||
Latest revision as of 17:54, 8 July 2026
gcloud projects create MyPROJECT doc
gcloud projects create [PROJECT_ID]
[ --no-enable-cloud-apis ]
[ --folder=FOLDER_ID ] [--labels=[KEY=VALUE,…]] [--name=NAME]
[ --organization = ORGANIZATION_ID ]
[ --set-as-default ]
[ --tags=[KEY=VALUE,…]] [GCLOUD_WIDE_FLAG …]
Contents
Examples[edit]
gcloud projects create mytestproject05122023 Create in progress for [1]. Waiting for [operations/cp.6484015299926395821] to finish...done. Enabling service [cloudapis.googleapis.com] on project [mytestproject05122023]... Operation "operations/acat.p2-493675xxxxxxxxe227d32ab" finished successfully.
- Add an aditional owner to the project
gcloud projects add-iam-policy-binding mytestproject05122023 --member='user:[email protected]' --role='roles/owner'
Errors[edit]
gcloud projects create mytestproject ERROR: (gcloud.projects.create) Project creation failed. The project ID you specified is already in use by another project. Please try an alternative ID.
You do not have the required "resourcemanager.projects.create" permission to create projects in this location
Related[edit]
gcloud billing projects link my-new-project --billing-account=0X0X0X-0X0X0X-0X0X0Xgcloud billing accounts listgcloud projects get-iam-policy
See also[edit]
Advertising: