gcloud
GROUP
| COMMAND
[--account
=ACCOUNT
] [--billing-project
=BILLING_PROJECT
] [--configuration
=CONFIGURATION
] [--flags-file
=YAML_FILE
] [--flatten
=[KEY
,…]] [--format
=FORMAT
] [--help
] [--project
=PROJECT_ID
] [--quiet
, -q
] [--verbosity
=VERBOSITY
; default="warning"] [--version
, -v
] [-h
] [--impersonate-service-account
=SERVICE_ACCOUNT_EMAIL
] [--log-http
] [--trace-token
=TRACE_TOKEN
] [--no-user-output-enabled
]
gcloud
CLI manages authentication, local configuration,
developer workflow, and interactions with the Google Cloud Platform APIs.
For a quick introduction to the gcloud command-line tool, a list of commonly
used commands, and a look at how these commands are structured, run gcloud cheat-sheet
or refer
to the gcloud command-line tool cheat sheet: https://cloud.google.com/sdk/docs/cheatsheet
--account
=ACCOUNT
core/account
property value for this command invocation.
--billing-project
=BILLING_PROJECT
billing/quota_project
and
--billing-project
are specified, --billing-project
takes precedence. Run $ gcloud
config set --help
to see more information about
billing/quota_project
.
--configuration
=CONFIGURATION
gcloud topic
configurations
. You can also use the CLOUDSDK_ACTIVE_CONFIG_NAME
environment variable to set the equivalent of this flag for a terminal session.
--flags-file
=YAML_FILE
--flag
:value
dictionary. Useful for specifying complex flag values with special characters
that work with any command interpreter. Additionally, each
--flags-file
arg is replaced by its constituent flags. See $ gcloud topic flags-file for
more information.
--flatten
=[KEY
,…]name
[] output resource slices in
KEY
into separate records for each item in each slice.
Multiple keys and slices may be specified. This also flattens keys for
--format
and --filter
. For example,
--flatten=abc.def
flattens abc.def[].ghi
references to
abc.def.ghi
. A resource record containing abc.def[]
with N elements will expand to N records in the flattened output. This flag
interacts with other flags that are applied in this order:
--flatten
, --sort-by
, --filter
,
--limit
.
--format
=FORMAT
config
, csv
, default
, diff
,
disable
, flattened
, get
,
json
, list
, multi
, none
,
object
, table
, text
, value
,
yaml
. For more details run $ gcloud topic formats.
--help
--project
=PROJECT_ID
gcloud config list --format='text(core.project)'
and can be set
using gcloud config set project PROJECTID
.
--project
and its fallback core/project
property play
two roles in the invocation. It specifies the project of the resource to operate
on. It also specifies the project for API enablement check, quota, and billing.
To specify a different project for quota and billing, use
--billing-project
or billing/quota_project
property.
--quiet
, -q
CLOUDSDK_CORE_DISABLE_PROMPTS
to 1.
--verbosity
=VERBOSITY
; default="warning"core/verbosity
property value for this command invocation.
VERBOSITY
must be one of: debug
,
info
, warning
, error
,
critical
, none
.
--version
, -v
-h
--impersonate-service-account
=SERVICE_ACCOUNT_EMAIL
auth/impersonate_service_account
property value for this command
invocation.
--log-http
core/log_http
property value for this command invocation.
--trace-token
=TRACE_TOKEN
core/trace_token
property value for this
command invocation.
--user-output-enabled
core/user_output_enabled
property value for this command
invocation. Use --no-user-output-enabled
to disable.
GROUP
is one of the following:
access-context-manager
active-directory
ai-platform
alpha
(ALPHA)
Alpha versions of gcloud commands.
anthos
apigee
app
artifacts
asset
auth
beta
(BETA)
Beta versions of gcloud commands.
bigtable
billing
builds
cloud-shell
components
composer
compute
config
container
data-catalog
dataflow
dataproc
datastore
debug
deployment-manager
dns
domains
endpoints
filestore
firebase
firestore
functions
game
healthcare
iam
iap
identity
iot
kms
logging
ml
ml-engine
monitoring
network-management
organizations
policy-troubleshoot
projects
pubsub
recommender
redis
resource-manager
run
scc
scheduler
secrets
services
source
spanner
sql
tasks
topic
COMMAND
is one of the following:
cheat-sheet
docker
(DEPRECATED)
Enable Docker CLI access to Google Container Registry.
feedback
help
info
init
survey
version