[[["容易理解","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-09-04 (世界標準時間)。"],[[["\u003cp\u003eDownload the Distributed Cloud CLI bundle to begin the installation process.\u003c/p\u003e\n"],["\u003cp\u003eAdd the \u003ccode\u003ebin\u003c/code\u003e directory of the gdcloud CLI to your system's path to simplify command usage and enable essential CLI functionalities.\u003c/p\u003e\n"],["\u003cp\u003eInitialize the gdcloud CLI default configuration by running \u003ccode\u003egdcloud init\u003c/code\u003e and providing the organization console URL and project name when prompted.\u003c/p\u003e\n"],["\u003cp\u003eManage gdcloud CLI components, such as listing with \u003ccode\u003egdcloud components list\u003c/code\u003e, or installing them using the command, \u003ccode\u003egdcloud components install <COMPONENT_ID>\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Install the gdcloud CLI\n\nTo install and initialize the Distributed Cloud CLI,\n[download the CLI bundle](/distributed-cloud/hosted/docs/latest/appliance/resources/gdcloud-download) and complete\nthe following steps.\n\nAdd gdcloud CLI bin directory to path\n-------------------------------------\n\nGoogle recommends adding the gdcloud CLI `bin` directory to your\npath.\n\nWhen the `bin` directory is added to your path:\n\n- You won't have to specify the entire directory structure with each command.\n- Crucial gdcloud CLI components are installed in the `bin` directory that allow commands like `gdcloud components` to work correctly.\n\n| **Note:** The commands in the following sections assume the `google-distributed-cloud-hosted-cli` folder is in the current working directory.\n\nAdd the gdcloud CLI `bin` directory to your path: \n\n eval echo '\\nexport GDCLOUD_PATH=$(pwd)/google-distributed-cloud-hosted-cli' \u003e\u003e ~/.bashrc\n echo 'export PATH=\"$GDCLOUD_PATH/bin:$PATH\"' \u003e\u003e ~/.bashrc\n source ~/.bashrc\n\nInitialize gdcloud CLI default configuration\n--------------------------------------------\n\nInitialize the gdcloud CLI default configuration: \n\n gdcloud init\n\nFollow the prompted instructions to initialize the configuration. You must\nprovide two properties to complete the initialization:\n\n- `organization_console_url`: The URL to your current Google Distributed Cloud air-gapped appliance organization's console. This URL must follow the syntax `https://console.org-name.gdch.google.com`.\n- `project`: The name of your current GDC project.\n- View these properties using the `gdcloud config list` command.\n\nManage gdcloud CLI components\n-----------------------------\n\nComponents are installable parts of the GDC CLI. The\ngdcloud CLI is installed by default. List, install, and update\ngdcloud CLI components as needed.\n\n### List components\n\nView the current list of available components: \n\n gdcloud components list\n\n### Install components\n\nInstall a component on the current version of your gdcloud CLI\ninstallation: \n\n gdcloud components install \u003cvar translate=\"no\"\u003eCOMPONENT_ID\u003c/var\u003e\n\nFor example, this command installs the `kubectl` component: \n\n gdcloud components install kubectl\n\n### Update components\n\nTo update all GDC components to the latest version of\nthe gdcloud CLI, see\n[Upgrade to the latest gdcloud CLI](/distributed-cloud/hosted/docs/latest/appliance/resources/gdcloud-upgrade)."]]