- NAME
-
- gcloud alpha init - initialize or reinitialize gcloud
- SYNOPSIS
-
-
gcloud alpha init
[--no-browser
] [--console-only
,--no-launch-browser
] [--skip-diagnostics
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
-
(ALPHA)
gcloud alpha init launches an interactive Getting Started workflow for the gcloud command-line tool. It performs the following setup steps:- 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.
- Sets up a new or existing configuration.
- Sets properties in that configuration, including the current project and optionally, the default Google Compute Engine region and zone you'd like to use.
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
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
. - EXAMPLES
-
To launch an interactive Getting Started workflow, run:
gcloud alpha init
To launch an interactive Getting Started workflow without diagnostics, run:
gcloud alpha init --skip-diagnostics
- FLAGS
-
--no-browser
- 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.
--console-only
,--no-launch-browser
- 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.
--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 help
for details. - 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:
gcloud init
gcloud beta init
gcloud preview init
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.