Modifying output and behavior

As we've seen, the gcloud tool (and the broader Google Cloud SDK) offers many configuration properties and global flags to customize user experience and modify behavior. When it comes to scripting, knowing how to apply these configurations and flags can make a big difference on the overall ease of use and reliability of these tools.

Although the customizable default values and behaviors of gcloud configurations are useful for interactive workflows, when it comes to writing scripts, being explicit is usually the way to go. As we mentioned when covering configurations, gcloud offers a global flag in order to specify which configuration to use as well as a special NONE configuration that has no set properties. In ...

Get Google Cloud Platform for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.