Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Google Cloud Platform Administration

You're reading from   Google Cloud Platform Administration Design highly available, scalable, and secure cloud solutions on GCP

Arrow left icon
Product type Paperback
Published in Sep 2018
Publisher Packt
ISBN-13 9781788624350
Length 230 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Ranjit Singh Thakurratan Ranjit Singh Thakurratan
Author Profile Icon Ranjit Singh Thakurratan
Ranjit Singh Thakurratan
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Introduction to Google Cloud Platform FREE CHAPTER 2. Google Cloud Platform Compute 3. Google Cloud Platform Storage 4. Google Cloud Platform Networking 5. Google Cloud Platform Containers 6. Google Cloud Platform Operations 7. Google Cloud Platform Identity and Security 8. Google Cloud Platform Billing 9. Google Cloud Platform Tools 10. Other Books You May Enjoy

Using the command line

Let's look at using the gcloud command to create a project. gcloud is part of the Google Cloud SDK. You will need to download and install it on your machine in order to use the gcloud commands from your terminal. Alternatively, you may use the cloud shell console from within the browser. Go to https://cloud.google.com/sdk/downloads to download the relevant package as it applies to your machine and install it:

  1. Once you have installed the SDK on your machine, we need to initialize it. This is done by running the gcloud init command to perform the initial setup tasks. If you ever need to change a setting or create a new configuration, simply re-run gcloud init.
  2. Open the terminal on your machine and type gcloud init. This opens a browser to allow you to log in to your account. If you want to avoid the browser, type gcloud init --console-only.
  3. If you use the -console-only flag, then copy and paste the browser URL in the terminal and then copy the key back into the console:
  1. Enter the numeric choice for the project to use. To create new project, type 2:

  1. Enter a unique project ID and click Enter. This will create a new project.
  2. To list all projects, type gcloud projects list:
You have been reading a chapter from
Google Cloud Platform Administration
Published in: Sep 2018
Publisher: Packt
ISBN-13: 9781788624350
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime