gcloud beta init Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud beta init - initialize or reinitialize gcloud
- SYNOPSIS
gcloud beta init[--no-browser][--console-only,--no-launch-browser][--skip-diagnostics][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(BETA)gcloud beta init launches an interactive Getting Startedworkflow for the gcloud command-line tool. It performs the following setupsteps:- Authorizes gcloud and other SDK tools to access Google Cloud using your useraccount credentials, or from an account of your choosing whose credentials arealready available.
- Sets up a new or existing configuration.
- Sets properties in that configuration, including the current project andoptionally, the default Google Compute Engine region and zone you'd like to use.
gcloud beta init can be used for initial setup of gcloud and to create new orreinitialize gcloud configurations. More information about configurations can befound by running
gcloud topicconfigurations.Properties set by gcloud beta init are local and persistent, and are notaffected by remote changes to the project. For example, the default ComputeEngine zone in your configuration remains stable, even if you or another userchanges the project-level default zone in the Cloud Platform Console.
To sync the configuration, re-run
gcloud beta init.- EXAMPLES
- To launch an interactive Getting Started workflow, run:
gcloudbetainitTo launch an interactive Getting Started workflow without diagnostics, run:
gcloudbetainit--skip-diagnostics - FLAGS
--no-browser- Prevent the command from launching a browser for authorization. Use this flag ifyou are on a machine that does not have a browser but you can install the gcloudCLI on another machine with a browser.
--console-only,--no-launch-browser- Prevent the command from launching a browser for authorization. Use this flag ifyou are on a machine that does not have a browser and you cannot install thegcloud CLI on another machine with a browser.
--skip-diagnostics- Do not run diagnostics.
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - NOTES
- This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudinitgcloudalphainitgcloudpreviewinit
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.