阿里云 Agent Skills 门户 - agentexplorer CLI 命令参考

更新时间:
复制 MD 格式

本文列出阿里云 Agent Skills 门户 - agentexplorer 在阿里云 CLI 中的可用命令,并提供各命令的语法和参数说明。

前提条件

  • 已安装阿里云 CLI。安装方法请参见安装/更新 CLI。

  • 执行需要身份认证的命令前,请确认已配置阿里云 CLI 凭证,且凭证对应的身份拥有所需权限。配置方法请参见配置与管理身份凭证。

地域与接入点

凭证配置中的默认地域可用 --region <regionId> 覆盖。

未指定接入地址时,CLI 按产品规则尝试解析,需要指定时可按地域和网络类型查看 Endpoint,再使用 --endpoint <endpoint>。

版本信息

属性

值

CLI 版本

3.5.4

API 版本

2026-03-17

可用命令

单击命令名称,查看命令描述、语法和参数说明。

命令

说明

GetSkillContent

获取指定 Agent Skill 的 SKILL.md 文件内容

ListCategories

列举所有的阿里云 Skills 类目

SearchSkills

通过关键词、类目搜索阿里云 Agent Skills

命令详情

语法逐行列出命令参数:<类型> 是需要替换的值占位符,方括号表示可选参数,# 表示列表项序号;[options] 表示 CLI 通用选项,见“全局选项”。可选对象或列表内标为必填的字段,仅在提供该对象或列表项时必填。完整参数定义见各命令的参数说明。

GetSkillContent

命令描述

获取指定 Agent Skill 的 SKILL.md 文件内容

HTTP 方法:GET

protocol:HTTPS

url:/openapi/skills/{skillName}

语法

aliyun agentexplorer GetSkillContent
    --skillName <string>
    [options]

参数

参数

类型

必填

说明

--skillName

String

是

skill name

示例

aliyun agentexplorer GET /openapi/skills/ecs-manager --region cn-hangzhou --header "Content-Type=application/json" --version 2026-03-17 --force

ListCategories

命令描述

列举所有的阿里云 Skills 类目

HTTP 方法:GET

protocol:HTTPS

url:/openapi/categories

语法

aliyun agentexplorer ListCategories
    [options]

参数

该命令没有专属参数。CLI 通用选项见“全局选项”。

示例

aliyun agentexplorer GET /openapi/categories --region cn-hangzhou --header "Content-Type=application/json" --version 2026-03-17 --force

SearchSkills

命令描述

通过关键词、类目搜索阿里云 Agent Skills

HTTP 方法:GET

protocol:HTTPS

url:/openapi/skills

语法

aliyun agentexplorer SearchSkills
    [--categoryCode <string>]
    [--keyword <string>]
    [--maxResults <int>]
    [--nextToken <string>]
    [--searchMode <string>]
    [--skip <int>]
    [options]

参数

参数

类型

必填

说明

--categoryCode

String

否

Skill 类目Code,如果传入多个,使用英文逗号隔开。如果是二级类目,使用 一级类目.二级类目的方式传入

--keyword

String

否

搜索关键词

--maxResults

Integer

否

分页查询时每页的最大条目数。最大值为 100。默认值为 20

--nextToken

String

否

下一个查询开始 Token,取值为上一次 API 调用返回的 NextToken 参数值

--searchMode

String

否

开启向量搜索的方式需指定semantic

--skip

Integer

否

分页参数,跳过数目

示例

aliyun agentexplorer GET /openapi/skills --region cn-hangzhou --nextToken AAAAAZjtYxxxxxxxx --maxResults 20 --searchMode semantic --skip 10 --categoryCode 'compute.serverless,network' --keyword ecs --header "Content-Type=application/json" --version 2026-03-17 --force

全局选项

以下为 CLI 通用选项,各选项的适用范围以说明为准。

选项

说明

--cli-dry-run

使用 --cli-dry-run 在执行校验后以人类可读格式输出请求详情,跳过实际运行

--cli-input-json

使用 --cli-input-json foo.json 从 JSON 对象读取产品 API 参数,命令行显式参数覆盖文件值

--cli-output

设置宿主 CLI Help、本地错误和更新检查的输出格式(json)

--cli-query

使用 --cli-query <jmespath> 通过 JMESPath 表达式过滤输出结果

--cli-sign-version

短横线命令的 OpenAPI 签名版本:当前仅支持 v4;设为空值可清空并恢复默认签名(aliyun configure set 可写入 Profile)

--language

使用 --language [en|zh] 来指定语言

--output -o

使用 --output cols=Field1,Field1 [rows=jmesPath] 使用表格方式打印输出

--profile -p

使用 --profile <profileName> 指定操作的配置集

--region

使用 --region <regionId> 来指定访问大区

--version --api-version

使用 --version <YYYY-MM-DD> 来指定访问的API版本

--yes -y

跳过安全策略的确认提示(用于非交互式/Agent 场景)