- Cloud Storage (GCS)

Interact with Google Cloud Storage (GCS) using CLI.

Command line interface

While GCP does provide a UI for interacting with GCS, we’ll explore the command line interface in this lesson, since this approach is useful for building automated workflows. GCP requires authentication for interacting with this service. Please revisit the lesson if you have not set up a JSON credentials file yet.

In our pre-configured execution environment, the google-cloud-storage library is already installed. To skip local installation instructions and begin creating a bucket, click here.

Installing libraries

In order to interact with Cloud Storage using Python, we’ll also need to install the GCS library using the command shown below:

Get hands-on with 1400+ tech skills courses.