- NAME
-
- gcloud config - view and edit Google Cloud CLI properties
- SYNOPSIS
-
-
gcloud configGROUP|COMMAND[GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
The gcloud config command group lets you set, view and unset properties used by
Google Cloud CLI.
A configuration is a set of properties that govern the behavior of
gcloudand other Google Cloud CLI tools. The initialdefaultconfiguration is set whengcloud initis run. You can create additional named configurations usinggcloud initorgcloud config configurations create.To display the path of the active configuration along with information about the current
gcloudenvironment, run $ gcloud info.To switch between configurations, use
gcloud config configurations activate.gcloud supports several flags that have the same effect as properties in a configuration (for example, gcloud supports both the
--projectflag andprojectproperty). Properties differ from flags in that flags affect command behavior on a per-invocation basis. Properties allow you to maintain the same settings across command executions.In addition to setting properties in a configuration, and the use of flags, it is possible to override the value of a property with an environment variable. The matching environment variable for a property is of the form 'CLOUDSDK_CATEGORY_PROPERTY'. For example, to demonstrate overriding the
property in theprojectcategory tocore, use a command like:my-projectCLOUDSDK_CORE_PROJECT=my-project gcloud config get core/projectFor more information on configurations, see
gcloud topic configurations. - GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--help.Run
$ gcloud helpfor details. - GROUPS
-
is one of the following:GROUPconfigurations- Manage the set of gcloud named configurations.
- COMMANDS
-
is one of the following:COMMAND - AVAILABLE PROPERTIES
-
core-
account-
Account
gcloudshould use for authentication. Rungcloud auth listto see your currently available accounts. console_log_format-
Control the format used to display log messages to the console.
Valid values are:
-
standard- Simplified log messages are displayed on the console. -
detailed- More detailed messages are displayed on the console.
If unset, default is
standard. -
custom_ca_certs_file- Absolute path to a custom CA cert file.
default_format-
Sets the default format for printing command resources.
core/default_formatoverrides the default yaml format. If the command contains a command-specific output format, it takes precedence over thecore/default_formatvalue. Use--verbosity=debugflag to view the command-specific format. Bothcore/formatand--formatalso take precedence overcore/default_format. The supported formats are limited to:config,default,disable,flattened,json,list,none,object,text. For more details run $ gcloud topic formats. Run$ gcloud config set --helpto see more information aboutcore/default_format default_regional_backend_service-
If True, backend services in
gcloud compute backend-serviceswill be regional by default. Setting the--globalflag is required for global backend services. disable_color- If True, color will not be used when printing messages in the terminal.
disable_file_logging-
If True,
gcloudwill not store logs to a file. This may be useful if disk space is limited. disable_prompts-
If True, the default answer will be assumed for all user prompts. However, for
any prompts that require user input, an error will be raised. This is equivalent
to either using the global
--quietflag or setting the environment variableCLOUDSDK_CORE_DISABLE_PROMPTSto 1. Setting this property is useful when scripting withgcloud. disable_usage_reporting- If True, anonymous statistics on SDK usage will not be collected. This value is set by your choices during installation, but can be changed at any time. For more information, see Usage statistics.
format-
Sets the format for printing all command resources. This overrides the default
command-specific human-friendly output format. Use
--verbosity=debugflag to view the command-specific format. If bothcore/default_formatandcore/formatare specified,core/formattakes precedence. If bothcore/formatand--formatare specified,--formattakes precedence. The supported formats are limited to:config,default,disable,flattened,json,list,none,object,text. For more details run $ gcloud topic formats. Run$ gcloud config set --helpto see more information aboutcore/format log_http-
If True, log HTTP requests and responses to the logs. To see logs in the
terminal, adjust
verbositysettings. Otherwise, logs are available in their respective log files. max_log_days- Maximum number of days to retain log files before deleting. If set to 0, turns off log garbage collection and does not delete log files. If unset, the default is 30 days.
parse_error_details-
If True,
gcloudwill attempt to parse and interpret error details in API originating errors. If False,gcloudwill write flush error details as is to stderr/log. pass_credentials_to_gsutil- If True, pass the configured Google Cloud CLI authentication to gsutil.
project-
Project ID of the Cloud Platform project to operate on by default. This can be
overridden by using the global
--projectflag. show_structured_logs-
Control when JSON-structured log messages for the current verbosity level (and
above) will be written to standard error. If this property is disabled, logs are
formatted as
textby default.Valid values are:
-
never- Log messages as text -
always- Always log messages as JSON -
log- Only log messages as JSON if stderr is a file -
terminal- Only log messages as JSON if stderr is a terminal
If unset, default is
never. -
trace_token- Token used to route traces of service requests for investigation of issues. This token will be provided by Google support.
universe_domain- Sets the domain of the universe to use for API requests.
user_output_enabled- True, by default. If False, messages to the user and command output on both standard output and standard error will be suppressed.
verbosity-
Default logging verbosity for
gcloudcommands. This is the equivalent of using the global--verbosityflag. Supported verbosity levels:debug,info,warning,error,critical, andnone.
accessibility-
screen_reader- Make gcloud more screen reader friendly.
ai-
region-
Default region to use when working with AI Platform resources. When a
--regionflag is required but not provided, the command will fall back to this value, if set.
ai_platform-
region-
Default region to use when working with AI Platform Training and Prediction
resources (currently for Prediction only). It is ignored for training resources
for now. The value should be either
globalor one of the supported regions. When a--regionflag is required but not provided, the command will fall back to this value, if set.
api_endpoint_overrides-
accessapproval-
Overrides API endpoint for
gcloud access-approvalcommand group. Defaults tohttps://accessapproval.googleapis.com/ accesscontextmanager-
Overrides API endpoint for
gcloud access-context-managercommand group. Defaults tohttps://accesscontextmanager.googleapis.com/ agentidentity-
Overrides API endpoint for
gcloud agent-identitycommand group. Defaults tohttps://agentidentity.googleapis.com/ ai-
Overrides API endpoint for
gcloud aicommand group. aiplatform-
Overrides API endpoint for
gcloud ai-platformcommand group. Defaults tohttps://aiplatform.googleapis.com/ anthosevents-
Overrides API endpoint for
gcloud anthoscommand group. Defaults tohttps://anthosevents.googleapis.com/ anthospolicycontrollerstatus_pa-
Overrides API endpoint for
gcloud container fleet policycontrollercommand group. Defaults tohttps://anthospolicycontrollerstatus-pa.googleapis.com/ apigateway-
Overrides API endpoint for
gcloud api-gatewaycommand group. Defaults tohttps://apigateway.googleapis.com/ apigee-
Overrides API endpoint for
gcloud apigeecommand group. Defaults tohttps://apigee.googleapis.com/ appengine-
Overrides API endpoint for
gcloud appcommand group. Defaults tohttps://appengine.googleapis.com/ apphub-
Overrides API endpoint for
gcloud apphubcommand group. Defaults tohttps://apphub.googleapis.com/ appoptimize-
Overrides API endpoint for
gcloud app-optimizecommand group. Defaults tohttps://appoptimize.googleapis.com/ apptopology-
Overrides API endpoint for
gcloud app-topologycommand group. Defaults tohttps://apptopology.googleapis.com/ artifactregistry-
Overrides API endpoint for
gcloud artifactscommand group. Defaults tohttps://artifactregistry.googleapis.com/ assuredworkloads-
Overrides API endpoint for
gcloud assuredcommand group. Defaults tohttps://assuredworkloads.googleapis.com/ auditmanager-
Overrides API endpoint for
gcloud audit-managercommand group. Defaults tohttps://auditmanager.googleapis.com/ baremetalsolution-
Overrides API endpoint for
gcloud bmscommand group. Defaults tohttps://baremetalsolution.googleapis.com/ bigtableadmin-
Overrides API endpoint for
gcloud bigtablecommand group. Defaults tohttps://bigtableadmin.googleapis.com/ certificatemanager-
Overrides API endpoint for
gcloud certificate-managercommand group. Defaults tohttps://certificatemanager.googleapis.com/ cloudapiregistry-
Overrides API endpoint for
gcloud api-registrycommand group. Defaults tohttps://cloudapiregistry.googleapis.com/ cloudasset-
Overrides API endpoint for
gcloud assetcommand group. Defaults tohttps://cloudasset.googleapis.com/ cloudbilling-
Overrides API endpoint for
gcloud billingcommand group. Defaults tohttps://cloudbilling.googleapis.com/ cloudbuild-
Overrides API endpoint for
gcloud buildscommand group. Defaults tohttps://cloudbuild.googleapis.com/ cloudcommerceconsumerprocurement-
Overrides API endpoint for
gcloud commerce-procurementcommand group. Defaults tohttps://cloudcommerceconsumerprocurement.googleapis.com/ clouddeploy-
Overrides API endpoint for
gcloud deploycommand group. Defaults tohttps://clouddeploy.googleapis.com/ clouderrorreporting-
Overrides API endpoint for
gcloud error-reportingcommand group. Defaults tohttps://clouderrorreporting.googleapis.com/ cloudfunctions-
Overrides API endpoint for
gcloud functionscommand group. Defaults tohttps://cloudfunctions.googleapis.com/ cloudidentity-
Overrides API endpoint for
gcloud identitycommand group. Defaults tohttps://cloudidentity.googleapis.com/ cloudkms-
Overrides API endpoint for
gcloud kmscommand group. Defaults tohttps://cloudkms.googleapis.com/ cloudlocationfinder-
Overrides API endpoint for
gcloud cloudlocationfindercommand group. Defaults tohttps://cloudlocationfinder.googleapis.com/ cloudresourcemanager-
Overrides API endpoint for
gcloud projectscommand group. Defaults tohttps://cloudresourcemanager.googleapis.com/ cloudscheduler-
Overrides API endpoint for
gcloud schedulercommand group. Defaults tohttps://cloudscheduler.googleapis.com/ cloudsecuritycompliance-
Overrides API endpoint for
gcloud compliance-managercommand group. Defaults tohttps://cloudsecuritycompliance.googleapis.com/ cloudsupport-
Overrides API endpoint for
gcloud supportcommand group. Defaults tohttps://cloudsupport.googleapis.com/ cloudtasks-
Overrides API endpoint for
gcloud taskscommand group. Defaults tohttps://cloudtasks.googleapis.com/ cloudtrace-
Overrides API endpoint for
gcloud tracecommand group. Defaults tohttps://cloudtrace.googleapis.com/ composer-
Overrides API endpoint for
gcloud composercommand group. Defaults tohttps://composer.googleapis.com/ compute-
Overrides API endpoint for
gcloud computecommand group. For Private Service Connect usage, see https://cloud.google.com/vpc/docs/configure-private-service-connect-apis#using-endpoints config-
Overrides API endpoint for
gcloud infra-managercommand group. Defaults tohttps://config.googleapis.com/ container-
Overrides API endpoint for
gcloud containercommand group. Defaults tohttps://container.googleapis.com/ datacatalog-
Overrides API endpoint for
gcloud data-catalogcommand group. Defaults tohttps://datacatalog.googleapis.com/ dataflow-
Overrides API endpoint for
gcloud dataflowcommand group. Defaults tohttps://dataflow.googleapis.com/ datafusion-
Overrides API endpoint for
gcloud data-fusioncommand group. Defaults tohttps://datafusion.googleapis.com/ datalineage-
Overrides API endpoint for
gcloud datalineagecommand group. Defaults tohttps://datalineage.googleapis.com/ datamigration-
Overrides API endpoint for
gcloud database-migrationcommand group. Defaults tohttps://datamigration.googleapis.com/ datapipelines-
Overrides API endpoint for
gcloud datapipelinescommand group. Defaults tohttps://datapipelines.googleapis.com/ dataplex-
Overrides API endpoint for
gcloud dataplexcommand group. Defaults tohttps://dataplex.googleapis.com/ dataproc-
Overrides API endpoint for
gcloud dataproccommand group. Defaults tohttps://dataproc.googleapis.com/ datastore-
Overrides API endpoint for
gcloud datastorecommand group. Defaults tohttps://datastore.googleapis.com/ datastream-
Overrides API endpoint for
gcloud datastreamcommand group. Defaults tohttps://datastream.googleapis.com/ deploymentmanager-
Overrides API endpoint for
gcloud deployment-managercommand group. Defaults tohttps://deploymentmanager.googleapis.com/ developerconnect-
Overrides API endpoint for
gcloud developer-connectcommand group. Defaults tohttps://developerconnect.googleapis.com/ devicerun-
Overrides API endpoint for
gcloud device-runcommand group. Defaults tohttps://devicerun.googleapis.com/ dns-
Overrides API endpoint for
gcloud dnscommand group. Defaults tohttps://dns.googleapis.com/dns/v1/ domains-
Overrides API endpoint for
gcloud domainscommand group. Defaults tohttps://domains.googleapis.com/ edgecontainer-
Overrides API endpoint for
gcloud edge-containercommand group. Defaults tohttps://edgecontainer.googleapis.com/ eventarc-
Overrides API endpoint for
gcloud eventarccommand group. Defaults tohttps://eventarc.googleapis.com/ eventarcpublishing-
Overrides API endpoint for
gcloud eventarc publishcommand group. Defaults tohttps://eventarcpublishing.googleapis.com/ faultinjectiontesting-
Overrides API endpoint for
gcloud fault-injectioncommand group. faulttesting-
Overrides API endpoint for
gcloud fault-testingcommand group. Defaults tohttps://faulttesting.googleapis.com/ file-
Overrides API endpoint for
gcloud filestorecommand group. Defaults tohttps://file.googleapis.com/ firebasedataconnect-
Overrides API endpoint for
gcloud firebase-data-connectcommand group. Defaults tohttps://firebasedataconnect.googleapis.com/ firestore-
Overrides API endpoint for
gcloud firestorecommand group. Defaults tohttps://firestore.googleapis.com/ ftp-
Overrides API endpoint for
gcloud storage ftpcommand group. Defaults tohttps://ftp.googleapis.com/ genomics-
Overrides API endpoint for
gcloud genomicscommand group. Defaults tohttps://genomics.googleapis.com/ gkemulticloud-
Overrides API endpoint for
gcloud container aws,gcloud container azureandgcloud container attachedcommand groups. healthcare-
Overrides API endpoint for
gcloud healthcarecommand group. Defaults tohttps://healthcare.googleapis.com/ hypercomputecluster-
Overrides API endpoint for
gcloud cluster-directorcommand group. Defaults tohttps://hypercomputecluster.googleapis.com/ iam-
Overrides API endpoint for
gcloud iamcommand group. Defaults tohttps://iam.googleapis.com/ iamconnectors-
Overrides API endpoint for
gcloud agent-identitycommand group. Defaults tohttps://iamconnectors.googleapis.com/ iamcredentials-
Overrides API endpoint for
gcloud iamcommand group. Defaults tohttps://iamcredentials.googleapis.com/ iap-
Overrides API endpoint for
gcloud iapcommand group. Defaults tohttps://iap.googleapis.com/ ids-
Overrides API endpoint for
gcloud idscommand group. Defaults tohttps://ids.googleapis.com/ kmsinventory-
Overrides API endpoint for
gcloud kms inventorycommand group. Defaults tohttps://kmsinventory.googleapis.com/ krmapihosting-
Overrides API endpoint for
gcloud anthos config controllercommand group. Defaults tohttps://krmapihosting.googleapis.com/ language-
Overrides API endpoint for
gcloud ml languagecommand group. Defaults tohttps://language.googleapis.com/ logging-
Overrides API endpoint for
gcloud loggingcommand group. Defaults tohttps://logging.googleapis.com/ looker-
Overrides API endpoint for
gcloud lookercommand group. Defaults tohttps://looker.googleapis.com/ managedidentities-
Overrides API endpoint for
gcloud active-directorycommand group. Defaults tohttps://managedidentities.googleapis.com/ marketplacesolutions-
Overrides API endpoint for
gcloud mpscommand group. Defaults tohttps://marketplacesolutions.googleapis.com/ mediaasset-
Overrides API endpoint for
gcloud mediacommand group. Defaults tohttps://mediaasset.googleapis.com/ memcache-
Overrides API endpoint for
gcloud memcachecommand group. Defaults tohttps://memcache.googleapis.com/ metastore-
Overrides API endpoint for
gcloud metastorecommand group. Defaults tohttps://metastore.googleapis.com/ monitoring