Skip to main content

CLIG での itHub Copilot のインストール

コマンド ラインの提案と説明を取得できるように、Copilot in the CLI をインストールする方法について説明します。

前提条件

組織または企業を介して GitHub Copilot にアクセスできる場合、組織の所有者またはエンタープライズ管理者が Copilot in the CLI を無効にしていると、Copilot in the CLI を使用することはできません。 「Managing policies for Copilot in your organization」をご覧ください。

Copilot in the CLI のインストール

  1. GitHub CLI アカウントでまだ認証していない場合は、ターミナルで次のコマンドを実行します。

    Shell
    gh auth login
    
  2. Copilot in the CLI 拡張機能をインストールするには、次のコマンドを実行します。

    Shell
    gh extension install github/gh-copilot
    

Copilot in the CLI の更新

Copilot in the CLI 拡張機能をインストールした後は、次のコマンドを実行していつでも更新できます。

Shell
gh extension upgrade gh-copilot

参考資料