In this article
Two tools appear in almost every lab: the Cloud console in the browser, and Cloud Shell, a terminal that opens inside it.
Quick summary
- The console is the web interface for Google Cloud.
- Cloud Shell is a free browser terminal with the
gcloudtool already installed. - You can do the same job in either one.
The console in five minutes
- Project picker at the top shows which project you are working in. Check it first when something is "not found".
- Navigation menu (the three lines) lists every service, such as Compute Engine, Cloud Storage and BigQuery.
- Search bar is the fastest way to find a service or setting.
- Activate Cloud Shell is a small terminal icon at the top right.
Cloud Shell
Cloud Shell gives you a Linux terminal and a code editor in the browser. It comes with gcloud, git and other common tools, and a persistent home directory, so your files stay between sessions. In a Skills Boost lab it is already signed in with the lab account.
Commands worth knowing
gcloud auth list # which account is active
gcloud config list project # which project is active
gcloud config set project ID # switch project
gcloud services list --enabled # APIs that are turned on
gcloud compute instances list # virtual machines
gcloud storage ls # storage buckets
Add --help to any command to see its options.
Enabling APIs
Many services must be enabled before use. If you see an error saying an API is not enabled, run:
gcloud services enable SERVICE_NAME.googleapis.com
or use the Enable button in the console.
Console or command line?
Use the console to explore and learn. Use the command line when you need to repeat something or follow a lab's copy-and-paste steps. Labs often show both.
Related
Frequently asked questions
Is Cloud Shell free?
Cloud Shell itself has no charge, but resources you create from it can cost money.
Does Cloud Shell keep my files?
Your home directory is persistent, so files stay between sessions.
Which shell does it use?
A bash shell on Linux, with gcloud, git and other common tools installed.