google-cloud-storage-basics

Manages Google Cloud Storage buckets and objects via gcloud CLI, JSON API, and client libraries.

Updated May 11, 2026
One-click install
npx skills add https://github.com/alon3153/upe-social-publisher --skill google-cloud-storage-basics-alon3153
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: google-cloud-storage-basics
Source: https://github.com/alon3153/upe-social-publisher/tree/main/.agents/skills/google-cloud-storage-basics
Command: npx skills add https://github.com/alon3153/upe-social-publisher --skill google-cloud-storage-basics-alon3153

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Working with Google Cloud Storage involves many surfaces — buckets, objects, storage classes, IAM, lifecycle rules, transfers, and FUSE mounts — and choosing the wrong command or configuration leads to cost overruns, permission errors, or data loss. This Skill provides accurate, current operational guidance for everyday Cloud Storage tasks across the gcloud CLI, JSON API, client libraries, Terraform, and MCP servers. ## Core Features & Use Cases - Bucket and Object Operations: Create buckets, upload, download, copy, list, and delete objects using gcloud storage or the JSON API, with correct flags and pagination handling. - Access Control and Data Protection: Configure IAM roles, uniform bucket-level access, public access prevention, signed URLs, HMAC keys, versioning, soft delete, retention policies, and Bucket Lock. - Cost and Lifecycle Management: Apply storage classes (Standard, Nearline, Coldline, Archive), Autoclass, and Object Lifecycle Management rules to control spend. - Transfers and Mounting: Run large or parallel transfers with gcloud storage rsync and Storage Transfer Service, and mount buckets locally with Cloud Storage FUSE. - Use Case: A developer needs to migrate an S3 bucket to GCS, enable versioning on the destination, and set a lifecycle rule deleting noncurrent versions after 7 days — the Skill provides the exact STS job command, bucket update commands, and lifecycle JSON. ## Quick Start Ask the assistant to create a Cloud Storage bucket in a specific region and upload a local file to it using the gcloud CLI.

Frequently Asked Questions about google-cloud-storage-basics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Google Cloud Storage bucket with gcloud?▼

Run `gcloud storage buckets create gs://my-bucket --location=us-central1` after enabling the storage API. Bucket names share a single global namespace, so short or common names are usually taken; if location is omitted, the bucket defaults to the US multi-region.

How do I transfer data from Amazon S3 to Google Cloud Storage?▼

Use Storage Transfer Service with `gcloud transfer jobs create s3://source-bucket/ gs://destination-bucket/ --source-creds-file=s3-creds.json`. The STS service agent needs roles/storage.legacyBucketWriter on the destination bucket, and transfers run serverlessly on Google infrastructure.

Should I use gsutil or gcloud storage for Cloud Storage operations?▼

Use `gcloud storage`; gsutil is minimally maintained and lacks support for newer features like soft delete and managed folders. If existing scripts show a gsutil command, translate it to the equivalent gcloud storage command.

What is the difference between Nearline, Coldline, and Archive storage classes?▼

Nearline has a 30-day minimum duration for monthly access, Coldline 90 days for quarterly access, and Archive 365 days for yearly access. All serve reads with the same millisecond latency as Standard; only retrieval fees and minimum durations differ.

Can I mount a GCS bucket as a local file system?▼

Yes, Cloud Storage FUSE mounts buckets on Linux using standard POSIX file operations, authenticated via Application Default Credentials. It does not support file locking or random writes, and macOS and Windows are not supported.

Why did my gcloud storage command get a 403 Permission Denied error?▼

A 403 usually means missing IAM permissions, ACL conflicts, or uniform bucket-level access misconfiguration. Diagnose it with the dedicated google-cloud-storage-diagnostic skill rather than applying ad hoc IAM changes, which can grant unintended access.