-
Notifications
You must be signed in to change notification settings - Fork 26
gcloud setup project
By the end of this guide a new project in Google Cloud will be created, with Billing and relevant APIs enabled.
-
Install the Google Cloud CLI.
-
Have a billing account. If not, create a new billing account.
There are two ways of creating a Google Cloud project:
-
Manually using the web interface:
-
Create a project following official guide.
-
Enable billing for the project following official guide
-
Enable
Cloud Source Repositories
,Cloud Run Admin
, andArtifact Registry
APIs following official guide
-
-
In an automated way using the provided script, as shown below.
The script located at scripts/accounts/gcloud/create-project.sh
enables you to create and configure a new Google Cloud project.
create-project.sh \
-n <name> \
-b <billing account> \
[-d <description>] \
[-f <folder>] \
[-o <organization>]
[--firebase]
-n [Required] Name of the new project. (6-30 chars, lowercase letters, numbers, and hyphens)
-b [Required] Billing account. If not specified, won't be able to enable some services.
-d Description for the new project.
-f Numeric ID of the folder for which the project will be configured.
-o Numeric ID of the organization for which the project will be configured.
--firebase Creates the project as a Firebase project.
This documentation is licensed under the Creative Commons License (Attribution-NoDerivatives 4.0 International).