Skip to content

Commit 8765242

Browse files
author
Bill Prin
committed
Recommend new ADC command
1 parent f0c82ba commit 8765242

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/gcloud-auth.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,22 @@ Overview
1212
* **If you're developing locally**,
1313
the easiest way to authenticate is using the `Google Cloud SDK`_:
1414

15+
.. code-block:: bash
16+
17+
$ gcloud beta auth application-default login
18+
19+
Note that this command generates credentials for client libraries. To authenticate the CLI itself, use:
20+
1521
.. code-block:: bash
1622
1723
$ gcloud auth login
1824
25+
Previously, `gcloud auth login` was used for both use cases. If your gcloud installation does not support the new command, please update it:
26+
27+
.. code-block:: bash
28+
29+
$ gcloud components update
30+
1931
.. _Google Cloud SDK: http://cloud.google.com/sdk
2032

2133

0 commit comments

Comments
 (0)