📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

ti db create-db-cluster-branch



Creates a branch for one Starter cluster. --wait waits for the branch to become ACTIVE. The command verifies that the parent cluster is Starter before creating the branch.

Syntax

ti db create-db-cluster-branch --db-cluster-branch-name <string> --db-cluster-id <string> [--dry-run] [--help] [--version] [--wait]

Options

  • --db-cluster-branch-name <string>: Starter DB cluster branch display name. [required]
  • --db-cluster-id <string>: Starter DB cluster ID. [required]
  • --dry-run: Validate the request without applying changes.
  • --help: Display help information.
  • --version: Display version information.
  • --wait: Wait until the created branch becomes ACTIVE before returning.

For options shared by all commands, see Global options.

Examples

  • Create a branch and wait until it is active:

    # Wait until the new database branch can accept connections. ti db create-db-cluster-branch --db-cluster-id "<cluster-id>" --db-cluster-branch-name dev --wait
  • Preview branch creation:

    # Validate the parent cluster and branch request without creating it. ti db create-db-cluster-branch --db-cluster-id "<cluster-id>" --db-cluster-branch-name preview --dry-run

Was this page helpful?