{"id":1818,"date":"2022-11-02T20:50:14","date_gmt":"2022-11-02T15:20:14","guid":{"rendered":"https:\/\/cloudwithease.com\/?p=1818"},"modified":"2024-01-24T15:24:35","modified_gmt":"2024-01-24T09:54:35","slug":"what-is-google-cloud-shell","status":"publish","type":"post","link":"https:\/\/cloudwithease.com\/what-is-google-cloud-shell\/","title":{"rendered":"What is Google Cloud Shell?"},"content":{"rendered":"\n<div class=\"wp-block-rank-math-toc-block has-background\" style=\"background-color:#d0f5f7\" id=\"rank-math-toc\"><h2>Table of Contents<\/h2><nav><ul><li><a href=\"#introduction-to-google-cloud-shell\">Introduction to Google Cloud Shell<\/a><ul><li><a href=\"#features-of-google-cloud-shell\">Features of Google Cloud Shell<\/a><\/li><li><a href=\"#launching-cloud-shell\">Launching Cloud Shell<\/a><\/li><li><a href=\"#google-cloud-shell-editor\">Google Cloud Shell Editor<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n<p>Cloud computing is all about delivery of computing services over cloud (Internet) such as servers, storage, databases, networking, software, data processing, analytics and many more. All infrastructure and resources are managed by cloud providers. Cloud environments provide an interface using which you can manage your infrastructure and online code editor for cloud development.&nbsp;<\/p><div id=\"cloud-2968858422\" 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 shell, its features, how it works, use cases and so on.&nbsp;<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"introduction-to-google-cloud-shell\"><strong>Introduction to Google Cloud Shell<\/strong><\/h1>\n\n\n\n<p>Google Cloud shell provides an interactive shell environment for Google cloud platform. It is an online development and operations environment which enables anywhere access over a web browser.&nbsp;<\/p>\n\n\n\n<p>Management of resources, with its online terminal having preloaded with utilities help to develop, build, debug and deploy your own cloud-based applications using its online editor. It makes it easier to manage projects and resources without the need to install the Google cloud SDK and other tools on the system.&nbsp;<\/p>\n\n\n\n<p>With Cloud shell, the command line utility and other utilities of <a href=\"https:\/\/cloud.google.com\/sdk\" target=\"_blank\" rel=\"noreferrer noopener\">Cloud SDK <\/a>are always available as and when required. When cloud shell is launched, Google cloud platform inaugurates a lightweight container along with the shell. Post that Google cloud platform&nbsp; will destroy this container after our session. There will be no charge to use Cloud Shell or Cloud Console.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"features-of-google-cloud-shell\"><strong>Features of Google Cloud Shell<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It is a temporary compute engine virtual machine instance&nbsp;<\/li>\n\n\n\n<li>You can have access to command line instance from web browser<\/li>\n\n\n\n<li>It has built in code editor with 5GB persistent disk storage<\/li>\n\n\n\n<li>Pre Installed Google cloud SDK and other tools<\/li>\n\n\n\n<li>Language support for Java, Go, Python, Node.js, PHP, Ruby and .NET framework<\/li>\n\n\n\n<li>It is web preview functionality<\/li>\n\n\n\n<li>It has built in authorization for access to Google cloud platform console projects and resources<\/li>\n\n\n\n<li>You can customize environments according to your project needs<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"launching-cloud-shell\"><strong>Launching Cloud Shell<\/strong><\/h2>\n\n\n\n<p>A cloud shell can be launched in different ways depending on its use case.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Launching cloud shell from cloud console \u2013 <\/strong>to launch cloud shell from cloud console click -&gt; Activate shell in cloud console&nbsp;<\/li>\n<\/ul>\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=\"520\" data-id=\"1821\" data-src=\"https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-1.jpg\" alt=\"\" class=\"wp-image-1821 lazyload\" data-srcset=\"https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-1.jpg 800w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-1-300x195.jpg 300w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-1-768x499.jpg 768w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-1-600x390.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\/520;\" \/><\/figure>\n<\/figure>\n\n\n\n<p>Cloud Shell session will open inside a new frame at the bottom of the Cloud Console and will display a command-line prompt. It can take a couple of seconds for a session to be initialized.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Launching a standalone session \u2013 <\/strong>to launch a standalone session you can use shell.cloud.google.com . The cloud shell editor and terminal will start automatically. To open cloud shell editor use ide.cloud.google.com&nbsp;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Launching within documentation \u2013<\/strong> you will find \u2018Activate shell\u2019 in the header of the documentation page . This will launch a cloud shell as a panel in the current page at the bottom. The cloud shell terminal comes with Cloud SDK, Docker, <a href=\"https:\/\/cloudwithease.com\/what-is-terraform\/\" target=\"_blank\" rel=\"noreferrer noopener\">Terraform<\/a>, and command line utilities as pre-installed and authentication is based on your google credentials.&nbsp;<\/li>\n<\/ul>\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=\"474\" data-id=\"1822\" data-src=\"https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-2.jpg\" alt=\"\" class=\"wp-image-1822 lazyload\" data-srcset=\"https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-2.jpg 800w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-2-300x178.jpg 300w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-2-768x455.jpg 768w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-2-600x356.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\/474;\" \/><\/figure>\n<\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Launching with an open in cloud shell link \u2013<\/strong> if you want users to play around with your project and code samples then use the Open in cloud shell link option. This allows the user to construct and publish a URL which will automatically perform actions on launch of cloud shell such as Git repository cloning or opening a tutorial.&nbsp;<\/li>\n\n\n\n<li><strong>Launching and connecting locally to cloud shell using gcloud tool \u2013<\/strong> to connect cloud shell environment from command line interface <a href=\"https:\/\/cloudwithease.com\/what-is-google-cloud-sdk\/\" target=\"_blank\" rel=\"noreferrer noopener\">Google cloud SDK<\/a> installation is required. With gcloud cloud-shell command interactive SSH sessions can be established with cloud shell and you can copy files between local machine and cloud shell environment.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"google-cloud-shell-editor\"><strong>Google Cloud Shell Editor<\/strong><\/h2>\n\n\n\n<p>It has a built-in editor which can be used to browse file directories, edit files. The built-in editor is in beta stage and runs Theia, a cloud and Desktop IDE platform. It has additional features compared to regular editors. To modify files in editor, you can use activate cloud shell and execute command<\/p>\n\n\n\n<p><em><strong>Cloudshell edit FILEPATH&nbsp;<\/strong><\/em><\/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=\"406\" data-id=\"1824\" data-src=\"https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-3.jpg\" alt=\"\" class=\"wp-image-1824 lazyload\" data-srcset=\"https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-3.jpg 800w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-3-300x152.jpg 300w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-3-768x390.jpg 768w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-3-600x305.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\/406;\" \/><\/figure>\n<\/figure>\n\n\n\n<p><strong>Modifying sources on cloud source repositories (CSR) \u2013<\/strong> it allows you to modify files on CSR, navigate to cloud source repository and select repository and click on Edit code at the top right corner of page.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"544\" data-id=\"1825\" data-src=\"https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-4.jpg\" alt=\"\" class=\"wp-image-1825 lazyload\" data-srcset=\"https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-4.jpg 800w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-4-300x204.jpg 300w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-4-768x522.jpg 768w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-4-600x408.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\/544;\" \/><\/figure>\n<\/figure>\n\n\n\n<p>You can perform git operations and run regular terminal commands on shell.<\/p>\n\n\n\n<p>Customization of editor can be performed and you switch to different theme such as Dark theme on the menu, navigate to <strong><em>File-&gt;settings-&gt; change colour theme<\/em><\/strong> and <strong><em>select<\/em><\/strong> the <strong><em>Dark theme&nbsp;<\/em><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-5 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"389\" data-id=\"1827\" data-src=\"https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-5.jpg\" alt=\"\" class=\"wp-image-1827 lazyload\" data-srcset=\"https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-5.jpg 800w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-5-300x146.jpg 300w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-5-768x373.jpg 768w, https:\/\/cloudwithease.com\/wp-content\/uploads\/2022\/11\/GOOGLE-CLOUD-SHELL-5-600x292.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\/389;\" \/><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cloud computing is all about delivery of computing services over cloud (Internet) such as servers, storage, databases, networking, software, data &#8230; <a title=\"What is Google Cloud Shell?\" class=\"read-more\" href=\"https:\/\/cloudwithease.com\/what-is-google-cloud-shell\/\" aria-label=\"Read more about What is Google Cloud Shell?\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":1819,"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-1818","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\/1818","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=1818"}],"version-history":[{"count":6,"href":"https:\/\/cloudwithease.com\/wp-json\/wp\/v2\/posts\/1818\/revisions"}],"predecessor-version":[{"id":3635,"href":"https:\/\/cloudwithease.com\/wp-json\/wp\/v2\/posts\/1818\/revisions\/3635"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudwithease.com\/wp-json\/wp\/v2\/media\/1819"}],"wp:attachment":[{"href":"https:\/\/cloudwithease.com\/wp-json\/wp\/v2\/media?parent=1818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudwithease.com\/wp-json\/wp\/v2\/categories?post=1818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudwithease.com\/wp-json\/wp\/v2\/tags?post=1818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}