github-copilot-cli
AI-powered command-line assistant for shell commands
TLDR
SYNOPSIS
gh copilot [options] [prompt]
DESCRIPTION
gh copilot (previously an extension with suggest and explain subcommands) is now a thin launcher that downloads and runs the standalone copilot binary — GitHub's agentic coding assistant. The older suggest/explain/config/alias subcommands are deprecated; invoke copilot for an interactive agent session or pass -p for scripted use.The tool supports various shells and command-line tools, providing interactive suggestions that can be copied or executed directly.
PARAMETERS
-p, --prompt TEXT
Run a one-off prompt and print the response.--model MODEL
Select the LLM model used by Copilot.--allow-tool TOOL, --deny-tool TOOL, --allow-all-tools
Per-tool execution policy for the agent's built-in tools.--banner
Force the startup banner (useful inside scripts).--experimental
Opt in to experimental features.--remove
Uninstall the bundled standalone copilot binary managed by gh.
SLASH COMMANDS (interactive mode)
/login
Authenticate with GitHub Copilot./model
Switch the active model./lsp
Configure Language Server Protocol integrations./feedback
Send feedback to GitHub.
CAVEATS
Requires GitHub Copilot subscription. Needs internet connection. Suggestions may not always be accurate. Review commands before executing. Privacy considerations for command data.
HISTORY
GitHub Copilot CLI was released as a GitHub CLI extension after the success of GitHub Copilot for code. It extends AI assistance from code editors to the command line.
