[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-22 (世界標準時間)。"],[],[],null,["# Configure the Google Cloud CLI\n\nBefore using GKE on AWS, you must install the Google Cloud CLI and enable\nrequired APIs.\n\nTo configure Google Cloud CLI, run the following commands:\n\n1. Check your Google Cloud CLI installation with the following command:\n\n gcloud version\n\n2. If the Google Cloud CLI is not installed, or if its version is earlier than\n 412.0.0,\n [Install the latest version of the Google Cloud CLI](https://cloud.google.com/sdk/docs/install).\n\n3. Install the `kubectl`\n [additional component](https://cloud.google.com/sdk/docs/components#additional_components).\n\n4. If you haven't already done so,\n [create your Google Cloud project](/resource-manager/docs/creating-managing-projects#creating_a_project).\n Save your project's name, you'll use it later.\n\n5. Run the following command to authenticate with your Google Cloud\n account:\n\n gcloud auth login\n\n6. Enable the GKE Multi-Cloud API and its service dependencies with the\n following commands. These commands will enable the APIs for the project\n configured in your Google Cloud CLI.\n\n gcloud services enable gkemulticloud.googleapis.com\n gcloud services enable gkeconnect.googleapis.com\n gcloud services enable gkehub.googleapis.com\n gcloud services enable connectgateway.googleapis.com\n gcloud services enable cloudresourcemanager.googleapis.com\n gcloud services enable anthos.googleapis.com\n gcloud services enable logging.googleapis.com\n gcloud services enable monitoring.googleapis.com\n gcloud services enable opsconfigmonitoring.googleapis.com\n gcloud services enable kubernetesmetadata.googleapis.com\n\nWhat's next\n-----------\n\n- [Configure the AWS CLI](/kubernetes-engine/multi-cloud/docs/aws/how-to/configure-aws-cli)"]]