- gcloud alpha init - initialize or reinitialize gcloud
gcloud alpha init [--console-only] [--skip-diagnostics] [GCLOUD_WIDE_FLAG ...]
(ALPHA) gcloud alpha init launches an interactive Getting Started workflow
- Authorizes gcloud and other SDK tools to access Google Cloud Platform using your user account credentials, or lets you select from accounts whose credentials are already available.
- Sets properties in a gcloud configuration, including the current project and the default Google Compute Engine region and zone.
gcloud alpha init can be used for initial setup of gcloud and to create new or reinitialize gcloud configurations. More information can be found by running gcloud topic configurations.
Properties set by gcloud alpha init are local and persistent, and are not affected by remote changes to the project. For example, the default Compute Engine zone in your configuration remains stable, even if you or another user changes the project-level default zone in the Cloud Platform Console.
To sync the configuration, re-run gcloud alpha init
Prevent the command from launching a browser for authorization.
Do not run diagnostics.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you will have to apply for early access and have your projects registered on the API whitelist to use it. To do so, contact Support at cloud.google.com/support These variants are also available:
- $ gcloud init $ gcloud beta init