Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 2.67 KB

ticloud-branch-create.md

File metadata and controls

51 lines (35 loc) · 2.67 KB
title summary
ticloud branch create
The reference of `ticloud branch create`.

ticloud branch create

Create a branch for a cluster:

ticloud branch create [flags]

Note:

Currently, you can only create branches for TiDB Serverless cluster.

Examples

Create a branch in interactive mode:

ticloud branch create

Create a branch in non-interactive mode:

ticloud branch create --cluster-id <cluster-id> --branch-name <branch-name>

Flags

In non-interactive mode, you need to manually enter the required flags. In interactive mode, you can just follow CLI prompts to fill them in.

Flag Description Required Note
-c, --cluster-id string The ID of the cluster, in which the branch will be created Yes Only works in non-interactive mode.
--branch-name string The name of the branch to be created Yes Only works in non-interactive mode.
-h, --help Get help information for this command No Works in both non-interactive and interactive modes

Inherited flags

Flag Description Required Note
--no-color Disables color in output. No Only works in non-interactive mode. In interactive mode, disabling color might not work with some UI components.
-P, --profile string Specifies the active user profile used in this command. No Works in both non-interactive and interactive modes.

Feedback

If you have any questions or suggestions on the TiDB Cloud CLI, feel free to create an issue. Also, we welcome any contributions.