GitHub Copilot (CLI)
Tips and tricks for setting up and using GitHub Copilot with the CLI.
Install and Setup
Brew doesn't set up auto-completion for tools, but it works if you set this up in your shell.
# install
brew install gh# configure authentication
gh auth login# install the copilot extension
gh extension install github/gh-copilot# upgrade the copilot extension
gh extension upgrade gh-copilot# disable usage data
gh copilot configUsage
gh copilot <command> "prompt"Commands
config- adjust data collectionexplain- explain a commandsuggest- suggest a command
Explain
Prompting Copilot to explain a command to me.

Suggest
Prompting Copilot to build me a command and then providing feedback to improve the command.

Useful Resources
Last updated
Was this helpful?