aktonay/skillz / skills/cloud/cloud-run-basics
cloud-run-basics
VerifiedManages Cloud Run services, jobs, and worker pools. Use when you need to deploy applications responding to HTTP requests (services), run event-triggered or scheduled tasks (jobs), or handle always-on pull-based background processing (worker pools).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 15.2 KB |
| references/cli-usage.md | markdown | 2.4 KB |
| references/client-library-usage.md | markdown | 3.4 KB |
| references/core-concepts.md | markdown | 6.5 KB |
| references/iac-usage.md | markdown | 2.0 KB |
| references/iam-security.md | markdown | 3.9 KB |
| references/mcp-usage.md | markdown | 1.9 KB |
references/cli-usage.md
View on GitHub# Cloud Run CLI
Use the `gcloud run` command to manage your Cloud Run applications.
## Basic Syntax
```bash
gcloud run [GROUP] [COMMAND] [FLAGS]
```
## Essential Commands
### Cloud Run service
- **Deploy a service from an image:**
```bash
gcloud run deploy my-service \
--image us-docker.pkg.dev/cloudrun/container/hello:latest \
--quiet
```
- **Deploy from source code:**
```bash
gcloud run deploy my-service --source . --quiet
```
- **Deploy a Cloud Run function:**
```bash
gcloud run deploy my-service
--source . --function example-hello --base-image go126 --region us-central1 --quiet
```
- **List services:**
```bash
gcloud run services list --quiet
```
- **Update traffic split:**
```bash
gcloud run services update-traffic my-service --to-revisions=REV1=50,REV2=50 --quiet
```
### Cloud Run job
- **Create a job:**
```bash
gcloud run jobs create my-job \
--image us-docker.pkg.dev/cloudrun/container/job:latest \
--quiet
```
- **Execute a job:**
```bash
gcloud run jobs execute my-job --quiet
```
- **List jobs:** `gcloud run jobs list`
- **List job executions:**
```bash
gcloud run executions list --job my-job
```
### Cloud Run worker pools
- **Deploy a worker pool from an image:**
```bash
gcloud run worker-pools deploy my-workerpool \
--image us-docker.pkg.dev/cloudrun/container/worker-pool:latest \
--quiet
```
- **Deploy from source code:**
```bash
gcloud run worker-pools deploy my-workerpool --source . --quiet
```
- **List worker pools:**
```bash
gcloud run worker-pools list --region us-central1 --quiet
```
- **Configure scaling (manual):**
```bash
gcloud run worker-pools deploy my-workerpool --instances=5 \
--image us-docker.pkg.dev/cloudrun/container/worker-pool:latest \
--quiet
```
### Configuration and logs
- **View more details about a service:** `gcloud run services describe my-service`
- **View logs:**
```bash
gcloud logging read "resource.type=cloud_run_revision AND \
resource.labels.service_name=my-service" \
--quiet
```
## Common Flags
- `--region`: The region where the service or job is located.
- `--allow-unauthenticated`: Makes the service publicly accessible.
- `--no-allow-unauthenticated`: Restricts access to authenticated users only.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |