Running gcloud init PROJECT
also creates a local directory under PROJECT/default/.gcloud
. This implies that setting or listing gcloud config
properties in a directory hierarchy rooted at PROJECT/default
will only affect the local configuration properties.
This is particularly useful if you're switching between multiple projects with project-specific settings. For example, assume that two projects were initialized in the same top-level directory:
Then, if you change the directory to A
and get the project property stored in your local config, you'll see that it is set to A:
Similarly, if you change the current directory to B
and get the project, you'll see that it is set to B:
If, for example, you had some Cloud SQL instances associated with projects A and B then you could list the instances for an appropriate project simply by running gcloud sql instances list
from the right directory.
GCP provides a command-line interface [CLI] for interacting with cloud products and services. GCP resources can be accessed via the web-based CLI on GCP or by installing the Google Cloud software development kit [SDK] on your local machine to interact with GCP via the local command-line terminal.
This is a preview of subscription content, access via your institution.
Buying options
eBookEUR 29.99Price includes VAT [Singapore]
- ISBN: 978-1-4842-4470-8
- Instant PDF download
- Readable on all devices
- Own it forever
- Exclusive offer for individuals only
- Tax calculation will be finalised during checkout
Softcover BookEUR 37.99Price excludes VAT [Singapore]
- ISBN: 978-1-4842-4469-2
- Dispatched in 3 to 5 business days
- Exclusive offer for individuals only
- Free shipping worldwide
Shipping restrictions may apply, check to see if you are impacted. - Tax calculation will be finalised during checkout
Learn about institutional subscriptions
Figure 3-1
Figure 3-2
Figure 3-3
Figure 3-4
Figure 3-5
Figure 3-6
Figure 3-7
Figure 3-8
Figure 3-9
Figure 3-10
Figure 3-11
Figure 3-12
Figure 3-13
Figure 3-14
Figure 3-15
Notes
- 1.
APIs stands for application programming interfaces, which are packages and tools used in building software applications.
Author information
Authors and Affiliations
OTTAWA, ON, Canada
Ekaba Bisong
Authors
- Ekaba Bisong
View author publications
You can also search for this author in PubMed Google Scholar
Rights and permissions
Reprints and Permissions
Copyright information
© 2019 Ekaba Bisong
About this chapter
Cite this chapter
Bisong, E. [2019]. The Google Cloud SDK and Web CLI. In: Building Machine Learning and Deep Learning Models on Google Cloud Platform. Apress, Berkeley, CA. //doi.org/10.1007/978-1-4842-4470-8_3