gcloud projects create

From wikieduonline
Jump to navigation Jump to search

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 …]

Examples

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.


  1. Add an aditional owner to the project
gcloud projects add-iam-policy-binding mytestproject05122023 --member='user:[email protected]' --role='roles/owner'

Errors

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

See also

Advertising: