📒 Commands

All GCP CLI commands are prefaced with gcloud.

auth

auth login

Logs you into gcloud.

Your browser has been opened to visit:

    <https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=32555940559>
.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A8085%2F&scope=openid
+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis
.com%2Fauth%2Fcloud-platform+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fappengine.admin
+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcompute+https%3A%2F%2Fwww.googleapis.com%2F
auth%2Faccounts.reauth&state=dBFMCP2nnY5ozrwgPnjtQPbMJHj8Er&access_type=offline&code_c
hallenge=cbOXoZ7botpJsk2w06DbbZ_R1Lyp5gs3d62hsszjdu8&code_challenge_method=S256
# Opens browser login window

You are now logged in as [[email protected]].
Your current project is [None].  You can change this setting by running:
  $ gcloud config set project PROJECT_ID

config

config list

Shows you your stats g.

> gcloud config list
[core]
account = [email protected]
disable_usage_reporting = True
project = tmp-tm-search-relevance-0c3r

Your active configuration is: [default]

config set project <project-id>

Sets the project context for all the commands you're about to run.

> gcloud config set project esoteric-fx-291304
Updated property [core/project].
> gcloud config list
[core]
account = [email protected]
disable_usage_reporting = False
project = esoteric-fx-291304

Your active configuration is: [default]
>

components

components update

Updates you gcloud cli.

> gcloud components update

Your current Cloud SDK version is: 312.0.0
You will be upgraded to version: 326.0.0

+-----------------------------------------------------------------------------+
|                      These components will be updated.                      |
+-----------------------------------------------------+------------+----------+
|                         Name                        |  Version   |   Size   |
+-----------------------------------------------------+------------+----------+
| BigQuery Command Line Tool                          |     2.0.64 |  < 1 MiB |
| BigQuery Command Line Tool (Platform Specific)      |     2.0.64 |  < 1 MiB |
| Cloud SDK Core Libraries                            | 2021.01.29 | 16.7 MiB |
| Cloud SDK Core Libraries (Platform Specific)        | 2021.01.29 |  < 1 MiB |
| Cloud Storage Command Line Tool                     |       4.58 |  3.9 MiB |
| Cloud Storage Command Line Tool (Platform Specific) |       4.58 |  < 1 MiB |
| Windows command line ssh tools                      |            |  3.2 MiB |
| gcloud cli dependencies                             | 2021.01.08 | 10.7 MiB |
| gcloud cli dependencies                             | 2020.12.11 |  < 1 MiB |
+-----------------------------------------------------+------------+----------+

# Then a bunch of release notes......

Do you want to continue (Y/n)? Y

#......
#============================================================#
#= Installing: gcloud cli dependencies                      =#
#============================================================#
#= Creating backup and activating new installation          =#
#============================================================#

Performing post processing steps...done.

Update done!

To revert your SDK to the previously installed version, you may run:
  $ gcloud components update --version 312.0.0
>

sql

Commands for interacting with the gcloud SQL databases.