{"id":1444,"date":"2022-08-31T17:47:30","date_gmt":"2022-08-31T12:17:30","guid":{"rendered":"https:\/\/cloudwithease.com\/?p=1444"},"modified":"2024-01-24T15:15:40","modified_gmt":"2024-01-24T09:45:40","slug":"what-is-google-cloud-sdk","status":"publish","type":"post","link":"https:\/\/cloudwithease.com\/what-is-google-cloud-sdk\/","title":{"rendered":"What is Google Cloud SDK?"},"content":{"rendered":"\n<div class=\"wp-block-rank-math-toc-block has-background\" style=\"background-color:#daf6f3\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#understanding-google-cloud-sdk\">Understanding Google Cloud SDK\u00a0\u00a0<\/a><\/li><li><a href=\"#characteristics-of-google-cloud-sdk\">Characteristics of Google Cloud SDK<\/a><ul><li><a href=\"#command-line-tool-cli\">Command Line Tool (CLI) <\/a><\/li><li><a href=\"#client-libraries\">Client Libraries <\/a><\/li><li><a href=\"#product-specific-command-line-tools\">Product Specific Command Line Tools \u00a0\u00a0<\/a><\/li><li><a href=\"#cloud-shell\">Cloud Shell <\/a><\/li><\/ul><\/li><li><a href=\"#how-to-install-google-cloud-sdk\">How to Install Google Cloud SDK?\u00a0<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n<p>To manage applications and resources on cloud platforms in a secure manner certain tools are used such as Google cloud has Google cloud SDK, Amazon AWS has Amazon web services CLI and so on. These tools enable a secure interface to cloud platforms for managing and monitoring cloud resources.&nbsp;<\/p><div id=\"cloud-720950164\" class=\"cloud-content cloud-entity-placement\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1375203873676133\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:block; text-align:center;\" data-ad-client=\"ca-pub-1375203873676133\" \ndata-ad-slot=\"8195412531\" \ndata-ad-layout=\"in-article\"\ndata-ad-format=\"fluid\"><\/ins>\n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>\n\n\n\n<p>Today we look more in detail about Google cloud SDK tool and its features, how it works, use cases and so on.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"understanding-google-cloud-sdk\"><strong>Understanding Google Cloud SDK&nbsp;&nbsp;<\/strong><\/h2>\n\n\n\n<p>Google Cloud SDK is a set of tools for accessing Google cloud platform in a secure manner. It has essential tools for management, maintenance and monitoring Google cloud platform (GCP). It also helps in automation of monotonous and routine tasks to manage cloud infrastructure. Google cloud SDK includes the gsutil, and bq command line tools which can be used to access various Google cloud products and services such as compute engine , cloud storage, BigQuery, and other command line interface (CLI). The gcloud command line tool comes by default with Google cloud SDK.&nbsp;<\/p>\n\n\n\n<p>Google cloud SDK has emulators for cloud <a href=\"https:\/\/ipwithease.com\/google-pub-sub-vs-pub-sub-lite\/\" target=\"_blank\" rel=\"noreferrer noopener\">Pub\/Sub<\/a> and cloud data store which enable it to simulate Google cloud services in a local environment for development, testing and validation purposes.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"455\" data-id=\"1448\" data-src=\"https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/08\/GOOGLE-CLOUD-SDK-DP.jpg\" alt=\"\" class=\"wp-image-1448 lazyload\" data-srcset=\"https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/08\/GOOGLE-CLOUD-SDK-DP.jpg 800w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/08\/GOOGLE-CLOUD-SDK-DP-300x171.jpg 300w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/08\/GOOGLE-CLOUD-SDK-DP-768x437.jpg 768w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/08\/GOOGLE-CLOUD-SDK-DP-600x341.jpg 600w\" data-sizes=\"(max-width: 800px) 100vw, 800px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 800px; --smush-placeholder-aspect-ratio: 800\/455;\" \/><\/figure>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"characteristics-of-google-cloud-sdk\"><strong>Characteristics of Google Cloud SDK<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"command-line-tool-cli\"><strong>Command Line Tool (CLI) <\/strong><\/h3>\n\n\n\n<p>It manages authentication, local configuration, developer workflow, interactions with Google cloud APIs, CLI makes it easy to perform many common cloud tasks such as creating a compute engine VM instance, manage a Kubernetes Engine cluster, and deployment of an <a href=\"https:\/\/cloudwithease.com\/google-app-engine-vs-google-compute-engine\/\" target=\"_blank\" rel=\"noreferrer noopener\">App Engine <\/a>application,&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"client-libraries\"><strong>Client Libraries <\/strong><\/h3>\n\n\n\n<p>There are installable language specific cloud client libraries and google API client libraries. These libraries use supported language natural conventions and style, handles authentication, reduction in amount of boilerplate code and optimization of developer workflow.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"product-specific-command-line-tools\"><strong>Product Specific Command Line Tools &nbsp;&nbsp;<\/strong><\/h3>\n\n\n\n<p>There are pre-packaged command line tools that come with SDK. Such as gsutil, bq and Kubectl. <a href=\"https:\/\/cloud.google.com\/storage\/docs\/gsutil\" target=\"_blank\" rel=\"noreferrer noopener\">Gsutil <\/a>lets you manage cloud storage buckets and objects from CLI. BigQuery allows execution of queries and manipulates data sets. With Kubectl Kubernetes clusters can be managed.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"cloud-shell\"><strong>Cloud Shell <\/strong><\/h3>\n\n\n\n<p>It allows CLI access to cloud resources directly from the browser window. Projects and resources can be managed without having to install cloud SDK. With cloud shell the cloud SDK CLI is always available.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-install-google-cloud-sdk\"><strong>How to Install Google Cloud SDK?&nbsp;<\/strong><\/h2>\n\n\n\n<p>GCloud SDK runs on all platforms \u2013 Windows, Linux (Debian, Ubuntu, RedHat, CentOS), MacOS, and requires Python 2.7.x.&nbsp;<\/p>\n\n\n\n<p>It is recommended to install the Python bundle that comes along with the installer. Post installation of cloud SDK, open the command line and type <strong>\u2018gcloud\u2019<\/strong> to check if SDK is successfully installed or not.&nbsp;<\/p>\n\n\n\n<p><strong>Download the&nbsp;Cloud SDK installer.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"258\" data-id=\"1446\" data-src=\"https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/08\/GOOGLE-CLOUD-SDK-1.jpg\" alt=\"\" class=\"wp-image-1446 lazyload\" data-srcset=\"https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/08\/GOOGLE-CLOUD-SDK-1.jpg 800w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/08\/GOOGLE-CLOUD-SDK-1-300x97.jpg 300w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/08\/GOOGLE-CLOUD-SDK-1-768x248.jpg 768w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/08\/GOOGLE-CLOUD-SDK-1-600x194.jpg 600w\" data-sizes=\"(max-width: 800px) 100vw, 800px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 800px; --smush-placeholder-aspect-ratio: 800\/258;\" \/><\/figure>\n<\/figure>\n\n\n\n<p><strong>Open a PowerShell terminal and run the following PowerShell commands:<\/strong><\/p>\n\n\n\n<p class=\"has-base-3-background-color has-background\"><strong><em>(New-Object Net.WebClient).DownloadFile(&#8220;https:\/\/dl.google.com\/dl\/cloudsdk\/channels\/rapid\/GoogleCloudSDKInstaller.exe&#8221;, &#8220;$env:Temp\\GoogleCloudSDKInstaller.exe&#8221;)<\/em><\/strong><strong><em><br><\/em><\/strong><strong><em><br><\/em><\/strong><strong><em>&amp; $env:Temp\\GoogleCloudSDKInstaller.exe<\/em><\/strong><\/p>\n\n\n\n<p><strong>Launch the installer and follow the on-screen prompts<\/strong><\/p>\n\n\n\n<p>The installer installs all required components including Python version 2.7.x&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"410\" data-id=\"1447\" data-src=\"https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/08\/GOOGLE-CLOUD-SDK-2.jpg\" alt=\"\" class=\"wp-image-1447 lazyload\" data-srcset=\"https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/08\/GOOGLE-CLOUD-SDK-2.jpg 800w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/08\/GOOGLE-CLOUD-SDK-2-300x154.jpg 300w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/08\/GOOGLE-CLOUD-SDK-2-768x394.jpg 768w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/08\/GOOGLE-CLOUD-SDK-2-600x308.jpg 600w\" data-sizes=\"(max-width: 800px) 100vw, 800px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 800px; --smush-placeholder-aspect-ratio: 800\/410;\" \/><\/figure>\n<\/figure>\n\n\n\n<p>The installer gives the option to create Start menu and Desktop shortcuts, start cloud SDK shell, and configure Cloud SDK.<\/p>\n\n\n\n<p><strong>Verify installation using below command&nbsp;<\/strong><\/p>\n\n\n\n<p><strong><em>$&gt; gcloud version<\/em><\/strong><\/p>\n\n\n\n<p>This should list the current version of&nbsp;gcloud&nbsp;utility.<\/p>\n\n\n\n<p>  <strong><em>Google Cloud SDK 272.0.0<\/em><\/strong><\/p>\n\n\n\n<p><strong><em>&nbsp;&nbsp;bq 2.0.50<\/em><\/strong><\/p>\n\n\n\n<p><strong><em>&nbsp;&nbsp;core 2019.11.16<\/em><\/strong><\/p>\n\n\n\n<p><strong><em>&nbsp;&nbsp;gsutil 4.46<\/em><\/strong><\/p>\n\n\n\n<p>To Install additional component, for e.g., Kubectl<\/p>\n\n\n\n<p><strong><em>$&gt; gcloud components install Kubectl<\/em><\/strong><\/p>\n\n\n\n<p>To interact with GCP services, we must initialize SDK and set up authentication.<\/p>\n\n\n\n<p><strong><em>$&gt; gcloud init<\/em><\/strong><\/p>\n\n\n\n<p>Accept login to your Google account.<\/p>\n\n\n\n<p><strong><em>To continue, you must login. Would you like to log in (Y\/n)? Y<\/em><\/strong><\/p>\n\n\n\n<p>Open your browser and prompt for permissions. Log in with your Google account credentials and Allow.<\/p>\n\n\n\n<p>Select the preferred&nbsp;project&nbsp;and&nbsp;zone<\/p>\n\n\n\n<p><strong><em>gcloud has now been configured!<\/em><\/strong><\/p>\n\n\n\n<p><strong><em>You can use [gcloud config] to change more gcloud settings.<\/em><\/strong><\/p>\n\n\n\n<p><strong><em>Your active configuration is: [default]<\/em><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To manage applications and resources on cloud platforms in a secure manner certain tools are used such as Google cloud &#8230; <a title=\"What is Google Cloud SDK?\" class=\"read-more\" href=\"https:\/\/cloudwithease.com\/what-is-google-cloud-sdk\/\" aria-label=\"Read more about What is Google Cloud SDK?\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":1448,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"pmpro_default_level":"","footnotes":""},"categories":[20,38,45],"tags":[57,61],"class_list":["post-1444","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-cloud-gcp","category-cloud-technologies","category-tools-services","tag-gcp","tag-toolsservices","pmpro-has-access"],"_links":{"self":[{"href":"https:\/\/cloudwithease.com\/wp-json\/wp\/v2\/posts\/1444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudwithease.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudwithease.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudwithease.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudwithease.com\/wp-json\/wp\/v2\/comments?post=1444"}],"version-history":[{"count":8,"href":"https:\/\/cloudwithease.com\/wp-json\/wp\/v2\/posts\/1444\/revisions"}],"predecessor-version":[{"id":3619,"href":"https:\/\/cloudwithease.com\/wp-json\/wp\/v2\/posts\/1444\/revisions\/3619"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudwithease.com\/wp-json\/wp\/v2\/media\/1448"}],"wp:attachment":[{"href":"https:\/\/cloudwithease.com\/wp-json\/wp\/v2\/media?parent=1444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudwithease.com\/wp-json\/wp\/v2\/categories?post=1444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudwithease.com\/wp-json\/wp\/v2\/tags?post=1444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}