mcpField
G
glab-cluster

glab-cluster

github.com/vince-winkintel云与 DevOps4995 次安装1 天前更新
代码仓库

关于 glab-cluster

glab-cluster 是通过 glab 命令行管理 GitLab Kubernetes Agent 及其集群的技能,也涵盖实验性的 Kubernetes 对象图查询和供自动化使用的 JSON 输出。

主要功能

  1. 01管理 Kubernetes Agent
  2. 02管理 Agent 令牌
  3. 03查询 Kubernetes 对象图
  4. 04为自动化提供 JSON 输出

适用场景

  1. 01列出集群 Agent
  2. 02以 JSON 列出 Agent 令牌
  3. 03查询 Kubernetes 对象关系

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/vince-winkintel/gitlab-cli-skills --skill glab-cluster

安装后在 Claude Code 中输入/glab-cluster确认已加载。

附带文件references/commands.md

详细介绍

glab cluster

概述


  Manage GitLab Agents for Kubernetes and their clusters.
  USAGE
    glab cluster <command> [command] [--flags]
  COMMANDS
    agent <command> [command] [--flags]  Manage GitLab Agents for Kubernetes.
    graph [--flags]                      Queries the Kubernetes object graph, using the GitLab Agent for Kubernetes. (EXPERIMENTAL)
  FLAGS
    -h --help                            Show help for this command.
    -R --repo                            Select another repository. Can use either `OWNER/REPO` or `GROUP/NAMESPACE/REPO` format. Also accepts full URL or Git URL.

快速入门

glab cluster --help

结构化输出

glab cluster agent list 和 glab cluster agent token list 支持 --output json / -F json,用于结构化输出,便于 Agent 自动化。

# List cluster agents with JSON output
glab cluster agent list --output json
glab cluster agent list -F json

# List agent tokens with JSON output
glab cluster agent token list <agent-id> --output json
glab cluster agent token list <agent-id> -F json

子命令

完整的 --help 输出请参阅 references/commands.md。

评论

支持 Markdown