1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-11 07:29:40 +00:00

gcloud: Wed Jul 13 09:59:37 UTC 2022

This commit is contained in:
Automated 2022-07-13 09:59:38 +00:00
parent cf5ab60e4a
commit 879929cbc6
Failed to extract signature
323 changed files with 7203 additions and 4178 deletions

View file

@ -45,21 +45,24 @@ EXAMPLES
FLAGS
--no-browser
Use this flag to authenticate the client libraries on a machine without
a web browser.
If you want to authorize the client libraries on a machine that doesn't
have a browser and you can install the gcloud CLI on another machine
with a browser, use the --no-browser flag.
Run gcloud auth login --no-browser and follow these steps:
1. To initiate authorization, enter the following command:
1. Copy the long command that begins with "gcloud auth login
--remote-bootstrap=".
gcloud auth application-default login --no-browser
2. Paste and run this command on the command line of a different,
2. Copy the long command that begins with gcloud auth
application-default login --remote-bootstrap=".
3. Paste and run this command on the command line of a different,
trusted machine that has local installations of both a web browser and
the gcloud CLI tool version 372.0 or later.
3. Copy the long URL output from the machine with the web browser.
4. Copy the long URL output from the machine with the web browser.
4. Paste the long URL back to the first machine under the prompt,
5. Paste the long URL back to the first machine under the prompt,
"Enter the output of the above command", and press Enter to complete
the authorization.
@ -94,7 +97,31 @@ FLAGS
--launch-browser
Launch a browser for authorization. If not enabled or if it is not
possible to launch a browser, prints a URL to standard output to be
copied. Enabled by default, use --no-launch-browser to disable.
copied.
If you want to authorize the client libraries on a machine that doesn't
have a browser and you cannot install the gcloud CLI on another machine
with a browser, use the --no-launch-browser flag. The
--no-launch-browser flag prevents the command from automatically
opening a web browser.
1. To initiate authorization, enter the following command:
gcloud auth application-default login --no-launch-browser
2. Copy the long URL that begins with
https://accounts.google.com/o/oauth2/auth...
3. Paste this URL into the browser of a different, trusted machine that
has a web browser.
4. Copy the authorization code from the machine with the web browser.
5. Paste the authorization code back to the first machine at the
prompt, "Enter authorization code", and press Enter to complete the
authorization.
Enabled by default, use --no-launch-browser to disable.
--scopes=SCOPE,[SCOPE,...]
The names of the scopes to authorize for. By default openid,