Get started with Google Cloud | Documentation
cloud.google.com
To create an account in Google Cloud and set up the gcloud command-line tool, follow these
steps:
1. Create a Google Cloud Account:
• Visit the Google Cloud Console.
• Click on "Get started for free" and follow the prompts to set up your account.
• Upon signup, you'll receive $300 in free credits and free usage of over 20 products to
explore Google Cloud services.
Google Cloud
2. Install the Google Cloud SDK:
The Google Cloud SDK includes the gcloud CLI, which allows you to interact with Google
Cloud services from your terminal.
• For Windows:
• Download the installer from the Google Cloud SDK installation page.
• Run the installer and follow the on-screen instructions.
• For macOS:
• Open Terminal.
• Execute the following command to download and install the SDK:
bash
Copy code
curl https://sdk.cloud.google.com | bash
• Restart your terminal or run exec -l $SHELL to reload your profile.
• For Linux:
• Open your terminal.
• Execute the following commands:
bash
Copy code
sudo apt-get install apt-transport-https ca-certificates gnupg
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg]
https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -
a /etc/apt/sources.list.d/google-cloud-sdk.list
sudo apt-get update && sudo apt-get install google-cloud-sdk
3. Initialize the gcloud CLI:
After installation, initialize the gcloud CLI to set up your environment:
• Open your terminal.
• Run the following command:
bash
Copy code
gcloud init
• Follow the prompts to:
• Sign in with your Google account.
• Select or create a Google Cloud project.
• Set your preferred default region and zone.
4. Verify the Installation:
To ensure the gcloud CLI is installed and configured correctly:
• Run:
bash
Copy code
gcloud version
• This command will display the installed version of the gcloud CLI and its components.
By completing these steps, you'll have a Google Cloud account and the gcloud CLI set up,
enabling you to manage and deploy resources on Google Cloud Platform.