Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between gsutil and gcloud?

I want to know difference between gcloud and gsuitl. Where do we use what? Why certain commands begin with gsutil while others with gcloud?

like image 818
Kshitij Singh Avatar asked Sep 28 '19 10:09

Kshitij Singh


3 Answers

The gsutil command is used only for Cloud Storage.

With the gcloud command, you can interact with other Google Cloud products like the App Engine, Google Kubernetes Engine etc. You can have a look here and here for more info.

like image 193
siamsot Avatar answered Nov 07 '22 20:11

siamsot


The gsutil is a Python application that lets you access Google Cloud Storage from the command line. You can use gsutil to do a wide range of bucket and object management tasks, including:

Creating and deleting buckets. Uploading, downloading, and deleting objects. Listing buckets and objects. Moving, copying, and renaming objects. Editing object and bucket ACLs.

The gcloud command-line interface is the primary CLI tool to create and manage Google Cloud resources. You can use this tool to perform many common platform tasks either from the command line or in scripts and other automations.

For example, you can use the gcloud CLI to create and manage:

Google Compute Engine virtual machine instances and other resources, Google Cloud SQL instances, Google Kubernetes Engine clusters, Google Cloud Dataproc clusters and jobs, Google Cloud DNS managed zones and record sets, Google Cloud Deployment manager deployments.

like image 27
honeytechiebee Avatar answered Nov 07 '22 20:11

honeytechiebee


"gcloud" can create and manage Google Cloud resources while "gsutil" cannot do so.

"gsutil" can manipulate buckets, bucket's objects and bucket ACLs on GCS(Google Cloud Storage) while "gcloud" cannot do so.

like image 2
Kai - Kazuya Ito Avatar answered Nov 07 '22 18:11

Kai - Kazuya Ito