ti update
TiDB Cloud CLI リリースの更新を確認またはインストールします。このコマンドは、~/.ti/ 配下の設定、プロファイル、認証情報、操作ログ、その他の状態を読み取ったり変更したりしません。
構文
ti update
[--check]
[--dry-run]
[--fail-if-update-available]
[--help]
[--target-version <string>]
[--version]
オプション
--check: 更新を実行せずに、新しいtiリリースが利用可能かどうかを確認します。--dry-run: ローカルバイナリを変更せずに、更新計画を表示します。--fail-if-update-available:--checkと併用すると、更新が利用可能な場合に終了コード 1 で終了します。--help: ヘルプ情報を表示します。--target-version <string>: 対象のtiバージョンです。latestまたはvX.Y.Zなどを指定します。[default: latest]--version: バージョン情報を表示します。
すべてのコマンドで共通のオプションについては、グローバルオプション を参照してください。
例
更新が利用可能かどうかを確認する:
# Compare the installed version with the latest GitHub release without changing files. ti update --check更新が利用可能な場合に CI ジョブを失敗させる:
# Exit with code 1 when a newer release is available, without changing files. ti update --check --fail-if-update-available更新をプレビューする:
# Show the files and versions that an update would change. ti update --dry-run特定のリリースをインストールする:
# Replace an eligible installation with the requested release version. ti update --target-version <version>