GH-COPILOT(1)
β¨ GH-COPILOT π
(that's the gh-copilot page, bestie β GitHub CLI manual energy)
okay so you wanna run the GitHub Copilot CLI? say less. this is the whole page, no gatekeeping π«Ά
πΈ SYNOPSIS
gh copilot [flags] [args]
π¦ DESCRIPTION
So basically it runs the GitHub Copilot CLI. that's it, that's the vibe.
π¨ real talk: running the Copilot CLI through gh is currently in preview and subject to change. so like... don't build your whole personality on it yet, k?
If you already have it installed, gh will execute the Copilot CLI it finds in your PATH. if you don't have it installed, it gets downloaded to /home/abuild/.local/share/gh/copilot β iconic, it just handles it for you π
and if you want that downloaded Copilot CLI gone, hit it with --remove. bye bestie π
heads up on compatibility: this command is only supported on Windows, Linux, and Darwin, and only on amd64/x64 or arm64 architectures. no cap, that's the whole guest list.
Oh and super important β to stop gh from interpreting flags that are actually meant for Copilot, put -- before the Copilot flags and args. otherwise gh is gonna be all up in your business reading them itself π
wanna learn more? go look at https://gh.io/copilot-cli β the link is literally right there, iykyk β
π OPTIONS
--removeβ removes the downloaded Copilot CLI. that's the only one, she's simple and she knows it π
π EXIT CODES
0: successful execution β¨1: error π2: command canceled4: authentication required π
π NOTE: specific commands may have additional exit codes β go check that command's help for the details, fr fr.
π₯ EXAMPLE
download it and run it, no thoughts head empty:
# Download and run the Copilot CLI
$ gh copilot
running it with a prompt and letting it use the shell tool (main character energy):
# Run the Copilot CLI
$ gh copilot -p "Summarize this week's commits" --allow-tool 'shell(git)'
removing it β but only if you installed it through gh, remember that:
# Remove the Copilot CLI (if installed through gh)
$ gh copilot --remove
and getting the Copilot help command itself, using that -- we talked about:
# Run the Copilot CLI help command
$ gh copilot -- --help
π SEE ALSO
gh(1)β the mothership π«Ά
that's the whole page, you ate it up π this lil drop is from GitHub CLI v2.102.0, dated Oct 2026 β go forth and vibe check your way through Copilot, bestie π§ββοΈπΈ
π¦ where this page comes from
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- opensuse-leap 16.0: gh 2.102.0-bp160.1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms