gdcloud config set - 设置 Google Distributed Cloud Hosted CLI 属性。
摘要
gdcloud config set [flags]
示例
To switch to a new project named "example-project", run:
gdcloud config set project example-project
To switch to a new organization with the URL "https://console.example-org.com", run:
gdcloud config set organization_console_url https://console.example-org.com
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[[["\u003cp\u003e\u003ccode\u003egdcloud config set\u003c/code\u003e is used to modify properties within the Google Distributed Cloud Hosted CLI.\u003c/p\u003e\n"],["\u003cp\u003eYou can change the active project using \u003ccode\u003egdcloud config set project <project_name>\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can change the organization console URL using \u003ccode\u003egdcloud config set organization_console_url <url>\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe command \u003ccode\u003egdcloud config set\u003c/code\u003e accepts different optional flags.\u003c/p\u003e\n"]]],[],null,["# gdcloud config set\n\nNAME\n----\n\ngdcloud config set - Set a Google Distributed Cloud Hosted CLI property.\n\nSYNOPSIS\n--------\n\n gdcloud config set [flags]\n\n### EXAMPLES\n\n To switch to a new project named \"example-project\", run:\n\n gdcloud config set project example-project\n\n To switch to a new organization with the URL \"https://console.example-org.com\", run:\n\n gdcloud config set organization_console_url https://console.example-org.com\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/appliance/resources/gdcloud-reference/gdcloud) page."]]