TiDB Cloud CLI (ti) Overview
TiDB Cloud CLI (ti) is a CLI for managing TiDB Cloud Starter instances and TiDB Cloud Filesystems. It is designed for both interactive use and automation, with structured JSON output by default.
TiDB Cloud Filesystem
A TiDB Cloud Filesystem is a serverless distributed file system designed for AI agents and automation workloads. It provides a persistent, shareable file namespace that stays available independently of the local machine, sandbox, or CI runner that accesses it, making it useful for persistent storage, shared workspaces, and AI agent workflows.
When to use TiDB Cloud CLI (ti)
Use the TiDB Cloud CLI (ti) when you want to manage TiDB Cloud from a terminal, script, CI job, or AI agent environment.
For visual, guided workflows, use the TiDB Cloud console. For TiDB Cloud Essential or operations that ti does not support, use ticloud.
What TiDB Cloud CLI manages
The TiDB Cloud CLI covers the following functional areas:
- TiDB Cloud Starter
- Instance and branch lifecycle operations
- SQL users and connection information
- SQL statement execution
- TiDB Cloud Filesystem
- Filesystem lifecycle and file operations
- FUSE and WebDAV mounts
- Layers, packs, and Git workspaces
- Journals and vaults
- CLI configuration
- Profiles, regions, and local credentials
- CLI updates
- Output formatting and JMESPath queries
Most resource commands follow a two-level command model:
ti <command-group> <operation>
For example, ti db list-db-clusters --db-cluster-type starter, ti fs copy-file, and ti fs-journal verify-journal.
You can also use the top-level ti configure and ti update commands to configure and maintain the CLI.
Differences between ti and ticloud
TiDB Cloud currently provides two CLIs with different scopes: ti and ticloud.
ti is designed for automation with TiDB Cloud Starter and for managing TiDB Cloud Filesystems, while ticloud continues to support TiDB Cloud Essential and additional TiDB Cloud operations that are not available in ti.
ti does not replace ticloud. Choose the CLI based on the resource and operation you need:
- For new automation workflows with TiDB Cloud Starter, use
tiwhen it supports the operations you need. - For managing TiDB Cloud Filesystems, use
ti. - If you have existing
ticloudworkflows for TiDB Cloud Starter or TiDB Cloud Essential, you can continue to use them. - For TiDB Cloud Essential or operations not available in
ti(such as data import, data export, and audit log operations), useticloud.
Next steps
If you are new to the TiDB Cloud CLI, start with the Quick Start to install ti, configure a profile, and complete a basic TiDB Cloud Starter or Filesystem workflow.
Then continue based on what you want to do:
- Manage TiDB Cloud Starter Instances
- Manage TiDB Cloud Filesystems
- Follow end-to-end workflows: Start with Run a Daily TiDB Cloud CLI Workflow or Use TiDB Cloud Filesystem in an Agent Sandbox
- Look up a specific command: Check the TiDB Cloud CLI Command Reference
- See what’s new in TiDB Cloud CLI: Check the TiDB Cloud CLI (
ti) Release Notes - Report a problem: Create an issue in the TiDB Cloud CLI GitHub repository.