v0.2.1
TiDB Cloud CLI v0.2.1
This release makes TiDB Cloud Filesystem inventory portable across machines and removes client-side TiDB Cloud Project selection from Starter database workflows.
What's new
ti fs list-file-systemsnow reads the remote Drive9 inventory by using the configured TiDB Cloud API keys. Filesystems are identified by their server-assignedfile_system_idinstead of a client-only name.- Filesystem create returns the server-assigned ID and owner token. Local state stores only known tokens and routing hints keyed by that ID; remote inventory remains authoritative for resource existence and status.
ti fs import-file-system-tokenimports an existing owner token on another machine. Because the token contains its Filesystem ID, data-plane and mount commands can also run in a clean sandbox withTI_FS_TOKENandTI_REGION_CODEonly.ti configurenow validates and stores local input without making a TiDB Cloud API request. Authentication and authorization errors are reported by the first remote command that uses the configured keys.- Starter cluster creation no longer accepts
--project-id, reads a saved project default, or sends project-selection labels. TiDB Cloud selects the server-side default project, while project metadata returned by TiDB Cloud remains unchanged in command output. - The
ti organization list-projectscommand and its project-read permission are removed.
Breaking changes and migration
Filesystem commands that select an existing resource now use --file-system-id or TI_FS_FILE_SYSTEM_ID. ti fs create-file-system no longer accepts a user-defined Filesystem name. Existing complete name-keyed local credentials are migrated to the ID-keyed credential store without deleting the legacy source.
Existing project_id values in ~/.ti/config are ignored immediately. Running ti configure for that profile removes its legacy project value while preserving other profiles.
Upgrade from v0.2.0
Drain and unmount active Filesystem mounts before replacing ti and its bundled ti-drive9 companion, then run:
ti update --check
ti update
ti --versionNew installations can use:
curl -fsSL https://github.com/tidbcloud/ti-cli/releases/download/v0.2.1/install.sh | sh -s -- --yes
export PATH="$HOME/.ti/bin:$PATH"
ti --versionUpdated workflows
Configure and create a Starter cluster without selecting a project:
ti configure
ti db create-db-cluster --db-cluster-type starter --db-cluster-name my-app-db --waitInspect remote Filesystems and select one for subsequent commands:
ti fs list-file-systems --output text
export TI_FS_FILE_SYSTEM_ID="<file-system-id>"
ti fs check-file-systemProvision a Filesystem and retain the one-time owner token returned in the JSON result:
ti fs create-file-system --wait