less than 1 minute read

Github provides a CLI tool for Copilot. This tool can be used to interact with Copilot from the command line. This tool is useful for automating Copilot workflows and integrating Copilot with other tools.

Official Document

Installation

  1. install gh, a command-line tool that makes it easy to work with GitHub from the command line.
brew install gh
  1. Authenticate with GitHub
gh auth login
  1. Install the Copilot CLI
gh extension install github/gh-copilot

Usage

  1. Explain
gh copilot explain "<COMMAND>"
  1. Suggest
gh copilot suggest "<COMMAND>"