How to Install Google Cloud SDK in Termux and Run Cloud Shell | कैसे इंस्टॉल करें
What Is Google Cloud SDK?
Google Cloud SDK (Software Development Kit) is a collection of command-line tools used to manage applications and resources hosted on the Google Cloud Platform. It includes tools such as gcloud, gsutil, and bq. The gcloud CLI is installed automatically as part of the Cloud SDK.
- How to Install Friday – Personal Assistant for Termux
- How to Install Java in Termux Without Root
- How to Install Mr. Holmes Information Gathering Tool
- Install Google Cloud SDK in Termux and Run Cloud Shell
- How to Delete Facebook Account Using Termux
- My IP Address – How to Check IP Address in Termux
Note: Python 2.7 is required because gcloud does not support Python 3.9.
Method 2
Step 1
pkg install python2 curl openssh
export CLOUDSDK_PYTHON='python2.7'
echo "export CLOUDSDK_PYTHON='python2.7'" >> ~/.bashrc
echo "export PATH=$PATH:$PREFIX/google-cloud-sdk/bin" >> ~/.bashrc
curl -o sdk.sh sdk.cloud.google.com
chmod +x sdk.sh
./sdk.sh --install-dir=$PREFIX
Step 2
Learn Termux (Paid, Free for New Visitors)
Answer the setup questions and authenticate your account. Reload the shell so all commands are added to your PATH.
gcloud auth login
Copy the login link, open it in a browser, select your Google account, copy the verification code, and paste it back into the terminal.
Step 3
gcloud alpha cloud-shell ssh
or
gcloud cloud-shell ssh --authorize-session
Method 1
Run the following command:
curl https://sdk.cloud.google.com | bash
Note: This may fail while installing components. Ignore the error.
Then run:
~/google-cloud-sdk/install.sh --override-components
This will add gcloud to your PATH.
Install required components:
gcloud components install gsutil
Initialize the SDK:
gcloud init
Access Google Cloud Shell using:
gcloud cloud-shell ssh
How to Download and Set Up vShell Android (First Time)
- My Termux – Install Lazymux
- How to Install Oh My Zsh
- Download Copyright-Free Gameplay Videos
- Install FacebookToolkit in Termux, Linux, and Windows
- Download Any Video Using Termux
- Install Raspbian 9 (Stretch) in Termux