ti update
Checks for or installs a TiDB Cloud CLI release update. This command does not read or modify settings, profiles, credentials, operation logs, or other state under ~/.ti/.
Syntax
ti update
[--check]
[--dry-run]
[--fail-if-update-available]
[--help]
[--target-version <string>]
[--version]
Options
--check: Check whether a newertirelease is available without updating.--dry-run: Show the update plan without changing the local binary.--fail-if-update-available: With--check, exit with code 1 when an update is available.--help: Display help information.--target-version <string>: Targettiversion, such aslatestorvX.Y.Z. [default: latest]--version: Display version information.
For options shared by all commands, see Global options.
Examples
Check whether an update is available:
# Compare the installed version with the latest GitHub release without changing files. ti update --checkPreview an update:
# Show the files and versions that an update would change. ti update --dry-runInstall a specific release:
# Replace an eligible installation with the requested release version. ti update --target-version <version>