Skip to content

tidbcloud/tidbcloud-cli

Repository files navigation

TiDB Cloud CLI

The ticloud command line tool brings deploy cluster requests, and other TiDB Cloud concepts to your fingertips.

Table of Contents

Installation

macOS and Linux

Installing via script

curl https://raw.githubusercontent.com/tidbcloud/tidbcloud-cli/main/install.sh | sh

Installing via TiUP

tiup install cloud

Manually

Download the pre-compiled binaries from the releases page and copy to the desired location.

GitHub Action

To set up ticloud in GitHub Action, use setup-tidbcloud-cli.

Quick Start

In order to use the ticloud CLI, you need to have a TiDB Cloud account. If you don't have one, you can sign up for a free trial here.

Config a profile

Config a profile with your TiDB Cloud API key.

ticloud config create

# via TiUP
tiup cloud config create

ℹ️ The config name MUST NOT contain '.'

Create a cluster

ticloud cluster create

# via TiUP
tiup cloud cluster create

Documentation

Please check the CLI help for more information.

Set up TiDB Cloud API host

Usually you don't need to set up the TiDB Cloud API url, the default value is https://api.tidbcloud.com.

ticloud config set api-url https://api.tidbcloud.com

# via TiUP
tiup cloud config set api-url https://api.tidbcloud.com

Telemetry

See here

Roadmap

There are many features we want to add to the CLI.

  • CLI supports auth login.
  • CLI supports generating demo code for using TiDB Cloud cluster.
  • CLI supports creating the dedicated cluster(on condition that dedicated support flavor).
  • CLI supports backing up and restoring the TiDB Cloud cluster.