Xpersona
C

ctyun-cli-天翼云-命令行

CLAWHUB · Unverified

天翼云CLI工具 - 企业级命令行工具,帮助您轻松管理天翼云资源。支持ECS、VPC、EBS、ELB、CCE、Redis、MySQL、Kafka、CSS、EMR、监控、账务、IAM、Aone、CloudPC、AIServer、Audit、IMS、APM应用性能监控、LTS、SFS、OceanFS、ZOS、DPS物理机、安全卫士、云间高速EC、微服务引擎MSE、云防火墙CFW等32+服务模块,覆盖943+个API,898+个命令。 Skill: ctyun-cli-天翼云-命令行 Owner: fengyucn Summary: 天翼云CLI工具 - 企业级命令行工具,帮助您轻松管理天翼云资源。支持ECS、VPC、EBS、ELB、CCE、Redis、MySQL、Kafka、CSS、EMR、监控、账务、IAM、Aone、CloudPC、AIServer、Audit、IMS、APM应用性能监控、LTS、SFS、OceanFS、ZOS、DPS物理机、安全卫士、云间高速EC、微服务引擎MSE、云防火墙CFW等32+服务模块,覆盖943+个API,898+个命令。 Tags: latest:1.30.0 Version history: v1.30.0 | 2026-07-28T08:38:32.196Z | user - Expanded service coverage to 32+ modules, 943+ APIs, and 898+ commands.

62
Rank
84
Safety
1.3k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.3K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17fx20nzq4qsz087yw1yga7s183hsa0:ctyun
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-fengyucn-ctyun/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

104,150 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: ctyun-cli
description: "天翼云CLI工具 - 企业级命令行工具,帮助您轻松管理天翼云资源。支持ECS、VPC、EBS、ELB、CCE、Redis、MySQL、Kafka、CSS、EMR、监控、账务、IAM、Aone、CloudPC、AIServer、Audit、IMS、APM应用性能监控、LTS、SFS、OceanFS、ZOS、DPS物理机、安全卫士、云间高速EC、微服务引擎MSE、云防火墙CFW等32+服务模块,覆盖943+个API,898+个命令。"
homepage: https://github.com/fengyucn/ctyun-cli
pypi: https://pypi.org/project/ctyun-cli/
metadata: {"clawdbot":{"emoji":"☁️","requires":{"bins":["ctyun-cli"]},"install":[{"id":"pip","kind":"pip","package":"ctyun-cli","bins":["ctyun-cli"],"label":"Install ctyun-cli (pip)"}]}}
---

# 天翼云 CLI (ctyun-cli)

天翼云 CLI 工具,功能强大的企业级命令行工具,帮助您轻松管理天翼云资源。支持云服务器(ECS)、监控告警、安全防护、Redis分布式缓存、弹性负载均衡(ELB)、容器引擎(CCE)、VPC网络、费用查询等核心功能。

**规模统计:** 61,000+行代码,943+个API,898+个命令,32+大服务模块

## 安装

### 使用 pip 安装(推荐)
```bash
pip install ctyun-cli
```

### 使用 pipx 安装(隔离环境)
```bash
pipx install ctyun-cli
```

### 从源码安装
```bash
git clone https://github.com/fengyucn/ctyun-cli.git
cd ctyun-cli
pip install -e .
```

### 验证安装
```bash
ctyun-cli --version
ctyun-cli --help
```

## 配置与认证

### 方式一:环境变量(推荐,更安全)
```bash
export CTYUN_ACCESS_KEY=your_access_key
export CTYUN_SECRET_KEY=your_secret_key
```

将上述命令添加到 `~/.bashrc` 或 `~/.zshrc` 以实现永久配置。

### 方式二:交互式配置
```bash
ctyun-cli configure --access-key YOUR_ACCESS_KEY --secret-key YOUR_SECRET_KEY --region cn-north-1
```

### 查看当前配置
```bash
ctyun-cli show-config
```

### 列出所有配置文件
```bash
ctyun-cli list-profiles
```

### 测试 API 连接
```bash
ctyun-cli test
```

## 全局选项

所有命令都支持以下全局选项:
- `--profile TEXT`: 指定配置文件名称
- `--access-key TEXT`: 访问密钥
- `--secret-key TEXT`: 密钥
- `--region TEXT`: 区域
- `--endpoint TEXT`: API 端点
- `--output [table|json|yaml]`: 输出格式(默认 table)
- `--debug`: 启用调试模式

## 云服务器 (ECS) 管理

### 列出云主机实例
```bash
ctyun-cli ecs list
ctyun-cli ecs list --region cn-north-1 --output json
```

### 查询云主机详情
```bash
ctyun-cli ecs detail --instance-id YOUR_INSTANCE_ID
```

### 查询多台云主机详细信息
```bash
ctyun-cli ecs multidetail --instance-ids ID1,ID2,ID3
```

### 查询云主机统计信息
```bash
ctyun-cli ecs statistics
```

### 查询资源池列表
```bash
ctyun-cli ecs regions
```

### 订单询价
```bash
ctyun-cli ecs query-price --flavor-id FLAVOR_ID --quantity 1
```

### 资源续订询价
```bash
ctyun-cli ecs renew-price --region-id REGION_ID --resource-type VM --resource-uuid RESOURCE_UUID --cycle-type MONTH --cycle-count 1
```

## 虚拟私有云 (VPC) 管理

终端节点 `ctvpc-global.ctapi.ctyun.cn`。共 96 个命令,覆盖 VPC/子网/路由表/安全组/EIP/NAT/SNAT/DNAT/网卡/对等连接/流日志/共享带宽/共享流量包/终端节点/内网DNS/网络ACL/前缀列表/流量控制/GWLB/L2GW/HaVip/网络诊断/DHCP-VPC绑定/IPv6/IPv4网关/标签。

### VPC 与子网
```bash
ctyun-cli vpc list                              # 查询VPC列表
ctyun-cli vpc new-list                          # 新查询VPC列表(支持游标分页)
ctyun-cli vpc show --vpc-id VPC_ID              # 查询VPC详情
ctyun-cli vpc subnet list                       # 子网列表
ctyun-cli vpc subnet new-list                   # 新查询子网列表
ctyun-cli vpc subnet show --subnet-id SUBNET_ID # 子网详情
ctyun-cli vpc subnet used-ips --subnet-id SUBNET_ID  # 子网已使用IP
```

### 路由表
```bash
ctyun-cli vpc route-table list                                  # 路由表列表
ctyun-cli 

_meta.json

{
  "ownerId": "kn7fvp9jn3w5pkj2ekjpe41vg180grcv",
  "slug": "ctyun",
  "version": "1.30.0",
  "publishedAt": 1785227912196
}

skill-card.md

## Description:

天翼云 CLI 工具指南,帮助代理使用 ctyun-cli 安装、配置和管理天翼云资源,覆盖 ECS、VPC、EBS、ELB、CCE、Redis、MySQL、Kafka、监控、IAM 等 32+ 个服务模块、943+ 个 API 和 898+ 个命令。

This skill is ready for commercial/non-commercial use.

## Publisher:

[fengyucn](https://clawhub.ai/user/fengyucn)

### License/Terms of Use:

MIT-0

## Use Case:

Developers, operators, and agents use this skill to generate ctyun-cli installation, authentication, query, and cloud-resource management guidance for CTYUN environments. It is intended for managing live cloud resources and should be used with reviewed credentials and explicit confirmation for production-impacting commands.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can guide use of powerful CTYUN credentials and commands against live cloud infrastructure.

Mitigation: Use an isolated environment, pin and verify the ctyun-cli package or source commit, use least-privilege credentials, and require explicit confirmation before kubeconfig retrieval, deletion, or production-impacting operations.

Risk: Long-lived CTYUN secrets may be exposed through shell startup files or command history.

Mitigation: Avoid storing long-lived secrets in shell profiles or history, rotate any exposed credentials, and prefer short-lived or tightly scoped credentials when available.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/fengyucn/skills/ctyun)
- [PyPI package: ctyun-cli](https://pypi.org/project/ctyun-cli/)
- [Homepage listed in artifact](https://github.com/fengyucn/ctyun-cli)

## Skill Output:

**Output Type(s):** [Markdown, Shell commands, Configuration, Guidance]

**Output Format:** [Markdown with inline bash code blocks]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Command examples may target live CTYUN resources and can emit table, JSON, or YAML CLI output.]

## Skill Version(s):

1.30.0 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to ctyun-cli-天翼云-命令行 and adjacent AI workflows.