Back to Browse

GCP Tutorial #5 | Upload Files to Google Cloud Storage using gcloud CLI in VS Code

52 views
Apr 14, 2026
20:25

In this video, you will learn how to upload files to Google Cloud Storage (GCS) using the gcloud CLI directly from VS Code. While uploading files using the UI is simple, real-world cloud and data engineering workflows rely on command-line tools for automation and scalability. In this hands-on tutorial, we will connect our local system to GCP and upload files using terminal commands — just like professionals do. 🔹 What you'll learn: - What is gcloud CLI - How to set up gcloud in VS Code - Initialize gcloud and connect to your project - Upload files to GCS using command line - Upload folders recursively - Verify uploaded files - Common errors and how to fix them 💻 Tools Used: - VS Code - Google Cloud Platform (GCP) - Google Cloud Storage (GCS) 📌 Commands Used in this Video: 1. Initialize gcloud: gcloud init 2. Create a sample file: echo "Hello GCS from VS Code" file.txt 3. Upload file to GCS: gcloud storage cp file.txt gs://your-bucket-name/ 4. Upload folder: gcloud storage cp --recursive folder-name gs://your-bucket-name/ 5. List files in bucket: gcloud storage ls gs://your-bucket-name/ 📺 Previous Videos: Video 1: Introduction to GCP Video 2: GCP Setup Video 3: Create GCS Bucket Video 4: Upload Files using Console 🚀 Next Video: Download, Delete & Manage Files in GCS using CLI 0:00 Why Developers Don’t Use UI (CLI Explained) 2:10 Setup gcloud CLI in VS Code (Step-by-Step) 6:30 Initialize gcloud and Connect to Project 9:00 Upload File to GCS using CLI (Hands-On) 12:30 Fix Common Errors (gcloud not working, permissions) 16:00 Upload Folder to GCS (Recursive Command) 18:00 Real-World Use Case (Data Engineering Workflow) #GCP #GoogleCloud #gcloud #CloudStorage #DataEngineering #VSCode #GCS #CloudTutorial

Download

0 formats

No download links available.

GCP Tutorial #5 | Upload Files to Google Cloud Storage using gcloud CLI in VS Code | NatokHD