A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cloud.google.com/sdk/docs/initializing below:

Initializing the gcloud CLI | Google Cloud SDK Documentation

Skip to main content Initializing the gcloud CLI

Stay organized with collections Save and categorize content based on your preferences.

This page shows you how to initialize the gcloud CLI.

After you install the gcloud CLI, perform initial setup tasks by running gcloud init. You can also run gcloud init to change your settings or create a new configuration.

gcloud init performs the following setup steps:

You can run the following as alternatives to gcloud init:

Initialize the gcloud CLI

To initialize the gcloud CLI:

  1. Run gcloud init:

    gcloud init
    

    If you are in a remote terminal session, you can use the --no-launch-browser flag to prevent the command from launching a browser-based authorization flow, if required:

    gcloud init --no-launch-browser
    
  2. Create or select a configuration if prompted.

    If you are initializing a new gcloud CLI installation, gcloud init creates a configuration named default for you and sets it as the active configuration. If you have existing configurations, gcloud init prompts you to choose between three options — re-initialize the active one, switch to another one and re-initialize it, or create a new one.

  3. Complete the authorization step when prompted.

    Depending on whether you have previously authorized access to Google Cloud, you might be prompted to log in and grant access in a web browser or to select an existing account.

    If you used the --no-launch-browser flag and login is required, you must then copy and paste the provided authorization URL into another browser window and follow the prompts provided.

    When this step is completed, gcloud init sets the account property in the configuration to the specified account.

  4. Choose a current Google Cloud project if prompted.

    If you only have access to one project, including the default project for your user account, gcloud init selects it for you.

    Otherwise, you can select a project from a list of projects for which you have Owner, Editor or Viewer permissions. gcloud init sets the project property in the configuration to the property you choose. If you have access to more than 200 projects, you will be prompted to enter a project id, create a new project, or list projects.

    This account has a lot of projects! Listing them all can take a while.
     [1] Enter a project ID
     [2] Create a new project
     [3] List projects
    Please enter your numeric choice:
    
    Note: If you choose to create a project, you'll also need to enable billing on your project to use Google Cloud services.
  5. Choose a default Compute Engine zone if prompted.

    If you don't have the Compute Engine API enabled or you already have a default zone in your project-level metadata, you will not see this step. gcloud init sets the region and zone properties in the configuration using the zone you choose.

To view the properties set through the gcloud init command, use the gcloud config list command.

[compute]
region = us-east1
zone = us-east1-b
[core]
account = dana@example.com
disable_usage_reporting = False
project = example-project
What's next

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-02 UTC.

[[["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-07-02 UTC."],[],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4