Termux: Install Google Cloud CLI

These instructions specifically targets the following error during installation: <samp class="error" style="display: inline-block;">ERROR: (gcloud.components.update) The following components are unknown [anthoscli, kuberun].</samp>

  1. First: Run
  • curl https://sdk.cloud.google.com | bash
  • Note: This will fail when trying to install components. Ignore this.
  1. Then ~/google-cloud-sdk/install.sh --override-components
  • (without specifying components)
  • Will add gcloud to $PATH
  1. And then gcloud components install gsutil
  2. Finally gcloud init

Google cloud's shell can finally be accessed with gcloud cloud-shell ssh