Stay organized with collections
Save and categorize content based on your preferences.
This page describes the steps to set up Cloud Build. For information about
charges to Cloud Build, see Pricing.
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
Roles required to select or create a project
Select a project: Selecting a project doesn't require a specific
IAM role—you can select any project that you've been
granted a role on.
Create a project: To create a project, you need the Project Creator
(roles/resourcemanager.projectCreator), which contains the
resourcemanager.projects.create permission. Learn how to grant
roles.
To enable APIs, you need the Service Usage Admin IAM
role (roles/serviceusage.serviceUsageAdmin), which
contains the serviceusage.services.enable permission. Learn how to grant
roles.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[[["\u003cp\u003eSelect or create a Google Cloud project in the Google Cloud console.\u003c/p\u003e\n"],["\u003cp\u003eEnsure that billing is enabled for your Google Cloud project.\u003c/p\u003e\n"],["\u003cp\u003eEnable the Cloud Build API.\u003c/p\u003e\n"],["\u003cp\u003eInstall and initialize the Google Cloud CLI using \u003ccode\u003egcloud init\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eUpdate the Google Cloud CLI to the latest version using \u003ccode\u003egcloud components update\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["This page describes the steps to set up Cloud Build. For information about\ncharges to Cloud Build, see [Pricing](/build/pricing).\n\n1. In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n2.\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n3.\n\n\n Enable the required API.\n\n\n [Enable the API](https://console.cloud.google.com/flows/enableapi?apiid=cloudbuild.googleapis.com)\n4.\n [Install](/sdk/docs/install) the Google Cloud CLI.\n\n After installation,\n [initialize](/sdk/docs/initializing) the Google Cloud CLI by running the following command:\n\n ```bash\n gcloud init\n ```\n\n\n If you're using an external identity provider (IdP), you must first\n [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n5. If you've already installed gcloud CLI previously, make sure you have\n the latest available version:\n\n gcloud components update"]]