Google Cloud CLI: Difference between revisions
Jump to navigation
Jump to search
Line 23: | Line 23: | ||
gcloud --help | gcloud --help | ||
gcloud cheat-sheet | gcloud cheat-sheet | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign="top"| | | valign="top"| | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
gcloud init | |||
gcloud init --console-only | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign="top"| | | valign="top"| | ||
<syntaxhighlight lang="bash"> | |||
gcloud auth login | |||
gcloud auth login --no-browser | |||
</syntaxhighlight> | |||
|- | |- | ||
Line 39: | Line 42: | ||
|- | |- | ||
| valign="top" | | | valign="top" | | ||
<syntaxhighlight lang="bash"> | |||
gcloud auth login --no-launch-browser | |||
ls -lah ~/.config/gcloud/ | |||
gcloud config list | |||
</syntaxhighlight> | |||
| valign="top" | | | valign="top" | |
Revision as of 02:39, 13 May 2024
sudo apt update
sudo apt install apt-transport-https ca-certificates gnupg curl
# register apt-get repository
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg \
| sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg
cat << EOF | sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list >/dev/null
deb [arch=$(dpkg --print-architecture) \
signed-by=/usr/share/keyrings/cloud.google.gpg] \
https://packages.cloud.google.com/apt cloud-sdk main
EOF
sudo apt update
sudo apt install google-cloud-cli
Playground
gcloud --help
gcloud cheat-sheet
|
gcloud init
gcloud init --console-only
|
gcloud auth login
gcloud auth login --no-browser
|
| ||
gcloud auth login --no-launch-browser
ls -lah ~/.config/gcloud/
gcloud config list
|
References
| ||