📣
TiDB Cloud Premium はパブリックプレビュー中です。エンタープライズワークロード向けの無制限のスケーリング、即時の弾力性、高度なセキュリティを提供します。このページは自動翻訳されたものです。原文はこちらからご覧ください。

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>

このページは役に立ちましたか?