📣

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

ticloud serverless create

创建一个 TiDB Cloud 集群:

ticloud serverless create [flags]

示例

以交互模式创建一个 TiDB Cloud 集群:

ticloud serverless create

以非交互模式创建一个 TiDB Cloud 集群:

ticloud serverless create --display-name <display-name> --region <region>

以非交互模式创建一个带有消费上限的 TiDB Cloud Starter 集群:

ticloud serverless create --display-name <display-name> --region <region> --spending-limit-monthly <spending-limit-monthly>

以非交互模式创建一个 TiDB Cloud Essential 集群:

ticloud serverless create --display-name <display-name> --region <region> --max-rcu <maximum-rcu> --min-rcu <minimum-rcu>

参数说明

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

参数描述是否必需备注
-n --display-name string指定要创建的集群名称。仅在非交互模式下生效。
--spending-limit-monthly int指定每月最大消费上限(单位为美元分)。仅在非交互模式下生效。
-p, --project-id string指定要创建集群的项目 ID,默认值为 default project仅在非交互模式下生效。
-r, --region string指定云区域名称。你可以使用 ticloud serverless region 命令查看所有可用区域。仅在非交互模式下生效。
--disable-public-endpoint禁用公网访问端点。如果你希望阻止集群的公网访问,可以使用此选项。仅在非交互模式下生效。
--encryption启用双层数据加密。对于 TiDB Cloud Essential 集群默认启用,对于 TiDB Cloud Starter 集群默认禁用。仅在非交互模式下生效。
--max-rcu int32设置 TiDB Cloud Essential 集群的最大请求容量单元(RCU),最大可达 100000。仅在非交互模式下生效。
--min-rcu int32设置 TiDB Cloud Essential 集群的最小请求容量单元(RCU),最小为 2000。仅在非交互模式下生效。
-h, --help显示此命令的帮助信息。在非交互和交互模式下均可用。

继承参数

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

反馈

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

文档内容是否有帮助?