Skip to content

aktonay/skillz / skills/cloud/cloud-run-basics

cloud-run-basics

Verified

Manages 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).

FileKindSize
SKILL.mdskill md15.2 KB
references/cli-usage.mdmarkdown2.4 KB
references/client-library-usage.mdmarkdown3.4 KB
references/core-concepts.mdmarkdown6.5 KB
references/iac-usage.mdmarkdown2.0 KB
references/iam-security.mdmarkdown3.9 KB
references/mcp-usage.mdmarkdown1.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.
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
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: 197kUpdated Claude CodeCodexVerifiedInstall
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: 119kUpdated Claude CodeCodexVerifiedInstall
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: 118kUpdated Claude CodeCodexVerifiedInstall