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 Google Distributed Cloud Hosted CLI properties.\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\u003eThe organization console URL can be updated with \u003ccode\u003egdcloud config set organization_console_url [URL]\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe command provides several widely available flags, including \u003ccode\u003e--configuration\u003c/code\u003e, \u003ccode\u003e--format\u003c/code\u003e, \u003ccode\u003e--help\u003c/code\u003e, \u003ccode\u003e--project\u003c/code\u003e, and \u003ccode\u003e--quiet\u003c/code\u003e.\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/gdch/resources/gdcloud-reference/gdcloud) page."]]