gh copilot installs and runs GitHub Copilot CLI
Introduced 2026-01-21 · score 0.97
HOW TO USE IT
To use Copilot CLI from a terminal, run `gh copilot`; on its first run, follow the prompt to install it. The command runs Copilot CLI and forwards arguments and flags that `gh` does not support.
gh copilot [flags] [args]WHY THIS HELPS
Use GitHub Copilot CLI from a terminal while working in a repository with GitHub CLI users.
REQUIREMENTS AND LIMITATIONS
- Requires Run `gh copilot`; it prompts to install Copilot CLI on first run.
- flags and args: Arguments and flags not supported by `gh` are forwarded to Copilot CLI.
- --remove: Remove the downloaded Copilot CLI.
- Prerequisite: An active Copilot subscription; organization or enterprise users need Copilot CLI enabled by their administrator.
- The installation prompt occurs when `gh copilot` is run for the first time.
- Arguments and flags that the `gh` command does not support are forwarded to Copilot CLI.
FIRST-PARTY EVIDENCE
- https://github.blog/changelog/2026-01-21-install-and-use-github-copilot-cli-directly-from-the-github-cli
- https://cli.github.com/manual/gh_help_reference
- https://github.com/github/copilot-cli
Check the installed version and the source before using it. Entry JSON