## 事象 [[GitHub Copilot CLI]]を使っていていつの間にかバージョンが最新になっている。 ```console mise use -g npm:@github/[email protected] ``` のようにバージョン指定でインストールしても ```console $ copilot --version GitHub Copilot CLI 1.0.6. Run 'copilot update' to check for updates. ``` といつの間にか最新になっている。 ### 環境 | 対象 | バージョン | | ---------------------- | ------------- | | [[GitHub Copilot CLI]] | 1.0.1 ~ 1.0.5 | ## 原因 デフォルトでは `copilot` コマンド実行直後に最新バージョンに置き換わるようになっているため。 ``` --no-auto-update Disable downloading CLI update automatically (disabled by default in CI environments) ``` ## 解決方法 ### 環境変数で `COPILOT_AUTO_UPDATE` の環境変数を `false` にする。 > `COPILOT_AUTO_UPDATE`: set to "false" to disable downloading updated CLI versions automatically. Can also be disabled with the --no-auto-update flag. Auto-update is enabled by default, except in CI environments (detected via `CI`, `BUILD_NUMBER`, `RUN_ID`, or `SYSTEM_COLLECTIONURI` environment variables), where it is disabled by default. > > *`copilot help environment`より* ### コマンド引数で `--no-auto-update` オプションをつけて起動する。