name: agentuity-cli-cloud-db-list description: 列出数据库资源。需要身份验证。用于Agentuity云平台操作 version: “0.0.103” license: Apache-2.0 allowed-tools: “Bash(agentuity:*)” metadata: command: “agentuity cloud db list” tags: “只读 快速 需要身份验证”
云数据库列表
列出数据库资源
前提条件
- 已通过
agentuity auth login进行身份验证 - 需要组织上下文(
--org-id或默认组织)
用法
agentuity cloud db list [选项]
选项
| 选项 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
--showCredentials |
布尔值 | 是 | - | 以明文显示凭据(默认:在终端中隐藏,在JSON中显示) |
--nameOnly |
布尔值 | 是 | - | 仅打印名称 |
示例
列出项目:
bunx @agentuity/cli cloud db list
以JSON格式显示输出:
bunx @agentuity/cli --json cloud db list
列出项目:
bunx @agentuity/cli cloud db ls
使用显示凭据选项:
bunx @agentuity/cli cloud db list --show-credentials
输出
返回JSON对象:
{
"databases": "array"
}
| 字段 | 类型 | 描述 |
|---|---|---|
databases |
数组 | 数据库资源列表 |