Cloud SDK In Action
This lesson covers using the Cloud SDK commands.
We'll cover the following...
To use Google Cloud CLI effectively, you must understand how the commands are organized in the SDK. This way, it will be easy to guess the commands even if you don’t know the exact command.
Cloud SDK components
Cloud SDK is a bundle of different components. In the last lesson, we used the gcloud component. A component can be a separate CLI app or a group of commands used with the master component app. For example, gcloud
is a component (CLI app), and gcloud alpha
and gcloud beta
are also components (a group of commands).
Some of the important components in Cloud SDK are:
-
gcloud: The main google cloud component.
- gcloud alpha: Set of commands used for early testing of new features.
- gcloud beta: Beta release of new commands.
-
bq: Known as BigQuery component
-
gsutil: Used for Cloud storage operations.
-
core: Shared libraries for all the other components.
-
kubectl: Kubectl is used to control the Kubernetes cluster.
You can see the list of components using gcloud components list
. Try this command. A table with the list of components will be displayed. At the bottom, there will be a command to install/remove components.
To install or remove components at your current SDK version [504.0.1], run:
$ gcloud components install COMPONENT_ID
$ gcloud components
...