[[["容易理解","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-08-25 (世界標準時間)。"],[],[],null,["Properties are settings that govern the behavior of the gcloud CLI.\n\nYou can use properties to define a per-product or per-service setting such as\nthe account used by the gcloud CLI for authorization, the default\nregion to use when working with Compute Engine resources, or the option to\nturn off automatic gcloud CLI component update checks. Properties\ncan also be used to define gcloud CLI preferences like verbosity\nlevel and prompt configuration for gcloud CLI commands.\n\nProperties and flags\n\nThe gcloud CLI supports some\n[global flags](/sdk/gcloud/reference) and command flags that have the same\neffect as gcloud CLI properties. For example, the gcloud CLI supports both\nthe `--project` flag and `project` property. Properties allow you to maintain\nthe same settings across command executions while flags affect command behavior\non a per-invocation basis. Note that flags override properties when both\nare set.\n\nConfigurations\n\nA [configuration](/sdk/docs/configurations) is a named set of\ngcloud CLI properties. The gcloud CLI uses a\nconfiguration named `default` as the initial active configuration. The `default`\nconfiguration is suitable for most use cases. However, you can also\ncreate additional configurations and switch between them as required.\n\nListing properties\n\nTo list the properties in the active\n[configuration](/sdk/docs/configurations), run\n[`gcloud config list`](/sdk/gcloud/reference/config/list): \n\n gcloud config list\n\nThe gcloud CLI returns the list of properties: \n\n```sh\n[compute]\nregion = us-east1\nzone = us-east1-d\n[core]\naccount = user@google.com\ndisable_usage_reporting = False\nproject = example-project\n[metrics]\ncommand_name = gcloud.config.list\n```\n\nSetting properties\n\nTo set a property in the active configuration, run\n[`gcloud config set`](/sdk/gcloud/reference/config/set). The following example\nsets the [`project`](/sdk/gcloud/reference#--project)\nproperty, where \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e is the unique ID for your project. \n\n gcloud config set project \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e\n\nTo set properties that are not in the [`core`](/sdk/docs/properties#core)\nproperties section, you must specify the section followed by a forward slash\nbefore the property name. The following example sets the zone name to\n`us-east1-b`. \n\n gcloud config set compute/zone \u003cvar translate=\"no\"\u003eus-east1-b\u003c/var\u003e\n\nSetting properties using environment variables\n\nYou can also set properties using environment variables. Each property has a\ncorresponding environment variable that can be used to set it. The name of the\nenvironment variable follows the `CLOUDSDK_SECTION_NAME_PROPERTY_NAME` pattern.\nFor example, you can set the `core/project` and `compute/zone` properties as\nfollows: \n\n CLOUDSDK_CORE_PROJECT=\u003cvar translate=\"no\"\u003ePROJECT_NAME\u003c/var\u003e\n\n CLOUDSDK_COMPUTE_ZONE=\u003cvar translate=\"no\"\u003eZONE_NAME\u003c/var\u003e\n\n| **Note:** The environment variable values take precedence over property values set using [`gcloud config set`](/sdk/gcloud/reference/config/set).\n\nUnsetting properties\n\nTo unset a property in the active configuration, use\n[`gcloud config unset`](/sdk/gcloud/reference/config/unset): \n\n gcloud config unset disable_usage_reporting\n\nAvailable Properties\n\nThe list of all properties can be found by running\n[`gcloud topic configurations`](/sdk/gcloud/reference/topic/configurations)\nor [`gcloud config set --help`](/sdk/gcloud/reference/config/set) and looking\nfor the Available Properties section.\n\nWhat's next\n\n- Read [gcloud CLI configurations](/sdk/docs/configurations) to learn more about configurations."]]