From the course: Google Cloud Associate Cloud Engineer Cert Prep

Installing the cloud SDK

- Installing the cloud SDK. So for installing and configuring GCloud, which is the Google Cloud command line interface or CLI. So when you install the Google Cloud SDK, that would include command line tools for working with the platforms. That includes GCloud, that is the main common line interface tool, but also gsutil which is specific to cloud storage, or bq, which is specific to BigQuery. Those command utilities will be already available in Cloud Shell. Cloud Shell is the in browser shell that you see in the Google Cloud platform. It's basically a shared virtual machine where you have a shell environment with all of these tools pre-installed to interact with the platform. So to access Cloud Shell, you basically click on this little shell icon on the top right corner of the console and that will open a a little Shell window or section on the browser on the bottom of the page. But you can also install these tools in on local machines. They're also available as Docker images. So you can just search for Google Cloud SDK and find the installation tools for your operating system and you can install them locally or you can download this docker image as well if you prefer that. So when talking about GCloud, what is important to understand is the basic syntax. You don't necessarily need to memorize a bunch of commands. It helps you if you already know some, but if you know the basic syntax, you should be able to answer quite many questions related to GCloud because sometimes, they'll give you wrong alternatives. There are wrong just based on the syntax. So if you know the syntax, it's going to help you a lot. So the basic syntax for GCloud commands is GCloud plus the component on Google Cloud for the specific entity within that component and then the operation that you want to do on that entity. Plus position arguments of flags. So let me give you an example. GCloud Compute. So compute is a component. Other components could be, you know, storage or SQL. And then you have entities in the case of compute for example, you want to manage here specifically instances, it could have been disks or other things. And you want to attach a disk, so that's your operation. And then you provide position arguments which will depend on which operation you're doing. In this case, through attach a disk, we need to specify incidents name and then the disk and so on. Again, you don't need to memorize this, but I need to know the overall structure here, which is component over here, instance or entity rather. And then the operation. So the verb which is the operation always come sort of in the end just before the arguments and the flags. So you don't start the command, the CLI command with the verb. You always first start with the component and entities and you keep refining this. And there could be several levels. You know, compute instance, I don't know, network interface card. And you keep specifying, you keep refining which resource, which specific resource you are doing an operation on. And then finally have the operation in the end. So remember that. And here are the position arguments and flags, which again will depend on the command. There are great many number of them, you certainly don't need to memorize them.

Contents