
Global flags
For all commands in the gcloud CLI, users can specify a number of global flags to modify command behavior. The --account, --project, and --configuration flags allow you to override the current defaults for your environment. These are useful to avoid modifying or switching configurations to run a few quick commands. Other global flags including --quiet, --flatten, --format, and --verbosity allow users to modify the output from running commands—often useful when running scripts or debugging operations.
At any time, users can append --help to a command to bring up that command's documentation. This is true for the root gcloud, command groups, and all subcommands and operations. In addition, users can learn about CLI-wide concepts using the gcloud topic command group. The list of available topics can be seen by running gcloud topic --help. For example, to learn about using the --filter flag available in all list-producing operations, you can run gcloud topic filter.