← 返回
开发者工具 中文

Google Cloud CLI

Manage Google Cloud Platform resources using the official gcloud CLI, discovering command syntax dynamically with `gcloud <group> --help` before execution.
使用官方 gcloud CLI 管理 Google Cloud Platform 资源,在执行前通过 `gcloud <group> --help` 动态获取命令语法。
felipe0liveira
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 675
下载
💾 11
安装
1
版本
#latest

概述

Google Cloud CLI

gcloud - manage Google Cloud resources and developer workflows

This skill is built on top of the official gcloud CLI. It supports the full CLI surface while avoiding hardcoded syntax by always consulting --help output at runtime.

Related docs:

Requirements

This skill requires gcloud CLI.

For setup instructions, see installation.md.

Scope

Use this skill only for Google Cloud resource management via gcloud commands. Do not use unrelated endpoints, tools, or local file operations outside the requested task.

Credentials and Environment

This skill uses the active Google Cloud CLI authentication context (gcloud auth) and configuration (gcloud config). It inherits the permissions of the active identity.

Before any operation:

  1. Run gcloud config list --format='text(core.account,core.project)' and show the active account and project.
  2. If the active account is not a dedicated service account, stop and ask the user to switch identities.
  3. Confirm the target project and environment with the user before proceeding.

Credential safety rules:

  • Use least-privilege service accounts.
  • Do not use personal accounts or broad admin identities for automation.
  • Be explicit when --impersonate-service-account is in use.
  • Prefer sandbox projects for validation before production changes.

Workflow

Before executing any gcloud command, follow this sequence:

  1. Check active context:

```bash

gcloud config list --format='text(core.account,core.project)'

```

  1. Identify the right command group from groups.md.
  2. Discover syntax using help commands:

```bash

gcloud --help

gcloud --help

```

  1. Build the exact command from discovered syntax.
  2. Present the full command and wait for explicit user approval.
  3. Execute only after approval.
  4. Return output and summarize result.

Approval Policy

All operations require explicit user confirmation before execution, including read operations.

This includes:

  • Read/list/get operations
  • Create/update/delete operations
  • IAM and policy changes
  • Configuration changes (set, unset, reset)
  • Service enable/disable operations

For every operation, the agent must:

  1. Show the full command.
  2. Show active account/project context.
  3. Wait for explicit user approval.

Important Rules

  • Never guess command syntax; always validate with --help first.
  • Never execute commands autonomously.
  • Use --format=json when output will be parsed programmatically.
  • Use --quiet only after explicit user approval.
  • Warn clearly when commands are high-impact (IAM, networking, deletion, org-level changes).

What You Can Do

You can perform any operation available through gcloud, as long as it is within user-requested scope and approved before execution.

Examples and scenarios are documented in examples.md.

Troubleshooting

See troubleshooting.md for authentication, IAM, API enablement, and syntax troubleshooting steps.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 05:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 920 📥 185,727
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,797
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,847