The ticloud
command line tool brings deploy cluster requests, and other TiDB Cloud concepts to your fingertips.
curl https://raw.githubusercontent.com/tidbcloud/tidbcloud-cli/main/install.sh | sh
Installing via TiUP
tiup install cloud
Download the pre-compiled binaries from the releases page and copy to the desired location.
To set up ticloud
in GitHub Action, use setup-tidbcloud-cli
.
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 with your TiDB Cloud API key.
ticloud config create
# via TiUP
tiup cloud config create
ℹ️ The config name MUST NOT contain '.'
ticloud cluster create
# via TiUP
tiup cloud cluster create
Please check the CLI help for more information.
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
See here
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.