📣

TiDB Cloud Serverless 现已更名为
Starter
!此页面由 AI 自动翻译,英文原文请见
此处。

ticloud serverless shell

连接到 TiDB Cloud Serverless 集群:

ticloud serverless shell [flags]

示例

以交互模式连接到 TiDB Cloud Serverless 集群:

ticloud serverless shell

以非交互模式,使用默认用户连接到 TiDB Cloud Serverless 集群:

ticloud serverless shell -c <cluster-id>

以非交互模式,使用默认用户和密码连接到 TiDB Cloud Serverless 集群:

ticloud serverless shell -c <cluster-id> --password <password>

以非交互模式,使用指定用户和密码连接到 TiDB Cloud Serverless 集群:

ticloud serverless shell -c <cluster-id> -u <user-name> --password <password>

参数说明

在非交互模式下,你需要手动输入所需的参数。在交互模式下,你只需按照 CLI 提示填写即可。

参数描述是否必需备注
-c, --cluster-id string指定集群的 ID。仅在非交互模式下生效。
-h, --help显示该命令的帮助信息。在非交互和交互模式下均可用。
--password指定用户的密码。仅在非交互模式下生效。
-u, --user string指定登录的用户。仅在非交互模式下生效。

继承参数

参数描述是否必需备注
--no-color禁用输出中的颜色。仅在非交互模式下生效。在交互模式下,禁用颜色可能会影响部分 UI 组件的显示。
-P, --profile string指定该命令使用的活动 用户配置文件在非交互和交互模式下均可用。
-D, --debug启用调试模式。在非交互和交互模式下均可用。

反馈

如果你对 TiDB Cloud CLI 有任何问题或建议,欢迎创建 issue。同时,我们也欢迎任何形式的贡献。

文档内容是否有帮助?