If you have the new ARM64-based Mac with the M1 processor, you might run into this error installing the Google Cloud SDK:
ERROR: (gcloud.components.update) The following components are unknown [anthoscli].
Here’s how I was able to install
Install Python 3. At the time of this article, the latest stable version is 3.9.1. Use
brew install pyenv pyenv install 3.9.1 pyenv global 3.9.1
Set an env variable letting the
gcloud installer know which version of Python to use:
Download the SDK and start the install:
curl https://sdk.cloud.google.com | bash
If you run into the above error, manually run the
cd ~/google-cloud-sdk ./install.sh --override-components core gcloud-deps bq gcloud gsutil
- Restart your terminal and it should work:
App Engine Trouble
As of Feb 2021, it’s impossible to deploy an App Engine app with
gcloud app deploy. If you run
gcloud components install app-engine-go, you’ll get this error:
ERROR: (gcloud.components.install) The following components are unknown [app-engine-go].
I recommend switching to Cloud Run if you’re using App Engine. It’s pretty easy to do if you follow these instructions.
Hope this helped you! Hit me up on Twitter if you have any comments/suggestions.