LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gh-copilot

AI-powered command suggestions and explanations

TLDR

Ask Copilot a question
$ gh copilot suggest "[how to find large files]"
copy
Explain a command
$ gh copilot explain "[git rebase -i HEAD~3]"
copy
Get shell command suggestions
$ gh copilot suggest -t shell "[task description]"
copy
Get gh CLI suggestions
$ gh copilot suggest -t gh "[task description]"
copy

SYNOPSIS

gh copilot command [options]

DESCRIPTION

gh copilot provides AI-powered assistance using GitHub Copilot for the command line. It helps users discover and understand commands through natural language interactions.The suggest subcommand generates shell, git, or gh commands based on task descriptions, making it easier to find the right command syntax. The explain subcommand breaks down complex commands into understandable explanations, helping users learn what commands do before executing them.This integration brings GitHub Copilot's AI capabilities directly into the terminal workflow, requiring an active GitHub Copilot subscription.

PARAMETERS

-t, --target type

Target type (shell, gh, git).

SUBCOMMANDS

suggest

Get command suggestions.
explain
Explain a command.
config
Configure Copilot.

INSTALL

sudo apt install gh
copy
sudo dnf install gh
copy
sudo pacman -S github-cli
copy
sudo apk add github-cli
copy
sudo zypper install gh
copy
brew install gh
copy
nix profile install nixpkgs#gh
copy

CAVEATS

Deprecated. The gh copilot extension was archived in October 2025 in favor of the standalone, agentic GitHub Copilot CLI (invoked as copilot). Existing installations still work, but new users should install the replacement instead.

SEE ALSO

gh(1), gh-agent(1)

RESOURCES

Copied to clipboard
Kai