File: //snap/google-cloud-cli/394/help/man/man1/gcloud_alpha_init.1
.TH "GCLOUD_ALPHA_INIT" 1
.SH "NAME"
.HP
gcloud alpha init \- initialize or reinitialize gcloud
.SH "SYNOPSIS"
.HP
\f5gcloud alpha init\fR [\fB\-\-no\-browser\fR] [\fB\-\-console\-only\fR,\ \fB\-\-no\-launch\-browser\fR] [\fB\-\-skip\-diagnostics\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(ALPHA)\fR gcloud alpha init launches an interactive Getting Started workflow
for the gcloud command\-line tool. It performs the following setup steps:
.RS 2m
.IP "\(bu" 2m
Authorizes gcloud and other SDK tools to access Google Cloud using your user
account credentials, or from an account of your choosing whose credentials are
already available.
.IP "\(bu" 2m
Sets up a new or existing configuration.
.IP "\(bu" 2m
Sets properties in that configuration, including the current project and
optionally, the default Google Compute Engine region and zone you'd like to use.
.RE
.sp
gcloud alpha init can be used for initial setup of gcloud and to create new or
reinitialize gcloud configurations. More information about configurations can be
found by running \f5gcloud topic configurations\fR.
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 \f5gcloud alpha init\fR.
.SH "EXAMPLES"
To launch an interactive Getting Started workflow, run:
.RS 2m
$ gcloud alpha init
.RE
To launch an interactive Getting Started workflow without diagnostics, run:
.RS 2m
$ gcloud alpha init \-\-skip\-diagnostics
.RE
.SH "FLAGS"
.RS 2m
.TP 2m
\fB\-\-no\-browser\fR
Prevent the command from launching a browser for authorization. Use this flag if
you are on a machine that does not have a browser but you can install the gcloud
CLI on another machine with a browser.
.TP 2m
\fB\-\-console\-only\fR, \fB\-\-no\-launch\-browser\fR
Prevent the command from launching a browser for authorization. Use this flag if
you are on a machine that does not have a browser and you cannot install the
gcloud CLI on another machine with a browser.
.TP 2m
\fB\-\-skip\-diagnostics\fR
Do not run diagnostics.
.RE
.sp
.SH "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 \fB$ gcloud help\fR for details.
.SH "NOTES"
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation\-only early access
allowlist. These variants are also available:
.RS 2m
$ gcloud init
.RE
.RS 2m
$ gcloud beta init
.RE
.RS 2m
$ gcloud preview init
.RE