Copilot

GitHub Copilot CLI — AI assistance right in your terminal

Quick summary

GitHub Copilot CLI brings Copilot to your terminal -- get command suggestions, explanations, and translations from natural language without leaving the command line.

Common tasks

Basic Usage

gh copilot suggest "list all modified files"

Basic Usage

gh copilot explain "git rebase -i HEAD~3"

Basic Usage

gh copilot what-the-shell

Basic Usage

gh copilot

What is it?

GitHub Copilot CLI brings Copilot to your terminal -- get command suggestions, explanations, and translations from natural language without leaving the command line.

Basic Usage

Suggest a command:

$gh copilot suggest "list all modified files"

Explain a command:

$gh copilot explain "git rebase -i HEAD~3"

What the shell?:

$gh copilot what-the-shell

Interactive mode:

$gh copilot

Tips

Run gh copilot without arguments to enter interactive mode.
Uses GPT models under the hood -- great for learning git and shell commands.
You must be logged in with gh auth login and have a Copilot subscription.