How to Install Google Cloud SDK & Login to GCP (All Methods) ?
linuxforfreshers.comยท20h
Flag this post

๐ŸŒŸ Step 1 โ€” Install Google Cloud SDK

Windows

Download installer:

https://cloud.google.com/sdk/docs/install

macOS

curl https://sdk.cloud.google.com | bash
exec -l $SHELL

Linux

curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-367.0.0-linux-x86_64.tar.gz
tar -xf google-cloud-sdk-367.0.0-linux-x86_64.tar.gz
./google-cloud-sdk/install.sh
exec -l $SHELL


โš™๏ธ Step 2 โ€” Initialize Cloud SDK

gcloud init


๐Ÿ” GCP Login Methods

โœ… Method 1 โ€” Login Using Browser

gcloud auth login

โœ… Method 2 โ€” Login Without Browser (SSH Server)

gcloud auth login --no-launch-browser

You will get a URL โ†’ open it โ†’ paste code.

โœ… Mโ€ฆ

Similar Posts

Loading similar posts...