Tag: GCP

  • Install Google Cloud CLI in Termux

    Install gcloud CLI to access Google Cloud Shell via SSH on Android using Termux.

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

    Using the --console-only flag is useful if you’re running the command on a remote system using ssh and do not have access to a browser on that system. You must then manually open the provided URL in a browser on your local system to complete the authorization process.

    Google Cloud Shell can be accessed using command:

     gcloud cloud-shell ssh