ticloud serverless list
列出一个项目下所有的 TiDB Cloud Serverless 集群:
ticloud serverless list [flags]
或者使用以下别名命令:
ticloud serverless ls [flags]
示例
以交互模式列出所有 TiDB Cloud Serverless 集群:
ticloud serverless list
在非交互模式下,列出指定项目下的所有 TiDB Cloud Serverless 集群:
ticloud serverless list -p <project-id>
在非交互模式下,以 JSON 格式列出指定项目下的所有 TiDB Cloud Serverless 集群:
ticloud serverless list -p <project-id> -o json
参数
在非交互模式下,你需要手动输入所需的参数。在交互模式下,你只需按照 CLI 提示填写即可。
| 参数 | 描述 | 是否必需 | 说明 |
|---|---|---|---|
| -p, --project-id string | 指定项目的 ID。 | 是 | 仅在非交互模式下生效。 |
| -h, --help | 显示该命令的帮助信息。 | 否 | 在非交互和交互模式下均可用。 |
| -o, --output string | 指定输出格式(默认为 human)。可选值为 human 或 json。如需获取完整结果,请使用 json 格式。 | 否 | 在非交互和交互模式下均可用。 |
继承参数
| 参数 | 描述 | 是否必需 | 说明 |
|---|---|---|---|
| --no-color | 禁用输出中的颜色。 | 否 | 仅在非交互模式下生效。在交互模式下,禁用颜色可能会影响部分 UI 组件的显示。 |
| -P, --profile string | 指定该命令使用的活动 用户配置文件。 | 否 | 在非交互和交互模式下均可用。 |
| -D, --debug | 启用调试模式。 | 否 | 在非交互和交互模式下均可用。 |
反馈
如果你对 TiDB Cloud CLI 有任何问题或建议,欢迎创建 issue。我们也欢迎任何形式的贡献。