Getting Started with Gcloud | Scribe

    Getting Started with Gcloud

    • Hafeez Baig |
    • 15 steps |
    • 2 minutes
    1
    Sign in into the **Google Cloud Platform**
    2
    Click on the **Activate Cloud Shell** widget on the top right side
    information ordinal icon
    **What is Cloud Shell?**\ \ Cloud Shell is a browser-based command-line tool provided by Google Cloud. It enables users to manage Google Cloud resources directly from their browser with a pre-configured environment that includes essential development tools and the Google Cloud SDK. Cloud Shell integrates seamlessly with Google Cloud services, offering easy access to manage resources and persistent storage for files and configurations, eliminating the need for local setup or installations.
    3
    **Cloud Shell** wizard will open, click on the **CONTINUE** button
    4
    **CLOUD SHELL Terminal** has successfully connected
    5
    Click on the **Open in new window** widget on the right side to open this Terminal in a new window
    6
    **Cloud Shell Editor** is opened in the new tab, type the command [[gloud --version]]
    information ordinal icon
    **What is command [[gloud --version ]]?**\ \ The command `gcloud --version` displays the version of the Google Cloud SDK installed on your system. This command helps you verify the installed version of the `gcloud` command-line tool, which is used for managing Google Cloud resources and services.
    7
    Type the command [[gcloud init]]
    information ordinal icon
    What is command [[gcloud init ]]?\ \ The command `gcloud init` sets up the Google Cloud SDK by configuring authentication, selecting a default project, and setting default settings for your environment.
    8
    **Autorize Cloud Shell** wizard will open, click on the **AUTHORIZE** button
    9
    Type "**2**" as the numeric choice to **Create a new configuration**
    10
    Type the configuration name as **my-default-configuration** **Note:** You can choose any name for your new configuration.
    information ordinal icon
    **What is my-default-configuration?**\ \ `my-default-configuration` is a name given to a specific configuration within the Google Cloud SDK. Configurations in `gcloud` allow you to manage and switch between different sets of settings, such as project, region, and authentication details. By default, `gcloud init` may create a configuration named `default`, but you can name configurations anything you like, such as `my-default-configuration`, to organize and manage multiple setups easily.
    11
    Type "**1**" as the numeric choice to choose and continue with the current active Google Account **Note:** You can type "2" to log in with a new account
    12
    Then, type "**2**" to Pick **in28minutes-project-428110** as a cloud project to use **Note:** Choose the project in which you want this configuration to be included. The project name in your case might be different.
    13
    Type "**1**" to choose the region **us-east1-b** **Note:** You can use any one of the regions provided by Google Cloud. The best practice is to choose the region that is closest to your location.
    14
    Review all the configurations
    information ordinal icon
    Congrats on successfully creating a new configuration in Google Cloud!
    15
    To view the Active configuration, type the command [[gcloud config list]]