{"meta":{"title":"GitHub Copilot CLI","intro":"Use Copilot directly from your terminal to answer questions, write and debug code, and interact with GitHub.","product":"GitHub Copilot","breadcrumbs":[{"href":"/en/copilot","title":"GitHub Copilot"},{"href":"/en/copilot/how-tos","title":"How-tos"},{"href":"/en/copilot/how-tos/copilot-cli","title":"Copilot CLI"}],"documentType":"subcategory"},"body":"# GitHub Copilot CLI\n\nUse Copilot directly from your terminal to answer questions, write and debug code, and interact with GitHub.\n\n## Recommended\n\n* [Using GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/use-copilot-cli-agents/overview)\n\n  Learn how to use GitHub Copilot from the command line.\n\n* [Best practices for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/cli-best-practices)\n\n  Learn how to get the most out of GitHub Copilot CLI.\n\n* [GitHub Copilot CLI command reference](/en/copilot/reference/copilot-cli-reference/cli-command-reference)\n\n  Find commands and keyboard shortcuts to help you use Copilot CLI effectively.\n\n## Articles\n\n* [Getting started with GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/cli-getting-started)\n\n  Quickly learn how to use GitHub Copilot CLI.\n\n* [Best practices for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/cli-best-practices)\n\n  Learn how to get the most out of GitHub Copilot CLI.\n\n* [Installing GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli)\n\n  Learn how to install Copilot CLI so that you can use Copilot directly from the command line.\n\n* [Authenticating GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/authenticate-copilot-cli)\n\n  Authenticate Copilot CLI so that you can use Copilot directly from the command line.\n\n* [Configuring GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/configure-copilot-cli)\n\n  Configure trusted directories, tool access, and path and URL permissions for Copilot CLI\n\n* [Adding LSP servers for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/add-lsp-servers)\n\n  You can add LSP servers to give Copilot CLI precise code intelligence, improving its ability to navigate definitions, find references, and rename symbols.\n\n* [Troubleshooting GitHub Copilot CLI authentication](/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/troubleshoot-copilot-cli-auth)\n\n  Diagnose authentication failures when signing in to Copilot CLI.\n\n* [Allowing and denying tool use](/en/copilot/how-tos/copilot-cli/allowing-tools)\n\n  Control which tools Copilot CLI can use to avoid unintended changes.\n\n* [Steering a GitHub Copilot CLI session from another device](/en/copilot/how-tos/copilot-cli/steer-remotely)\n\n  Enable remote access to a Copilot CLI session so you can monitor progress, respond to prompts, and continue working from GitHub.com or GitHub Mobile.\n\n* [Quickstart for automating with GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/automate-copilot-cli/quickstart)\n\n  Build an automation with Copilot CLI in minutes.\n\n* [Running GitHub Copilot CLI programmatically](/en/copilot/how-tos/copilot-cli/automate-copilot-cli/run-cli-programmatically)\n\n  Use Copilot CLI in the terminal, in scripts, or in Actions workflows.\n\n* [Automating tasks with Copilot CLI and GitHub Actions](/en/copilot/how-tos/copilot-cli/automate-copilot-cli/automate-with-actions)\n\n  Integrate GitHub Copilot CLI into your GitHub Actions workflows.\n\n* [Overview of customizing GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/overview)\n\n  Copilot CLI works best when customized for your specific project and workflow.\n\n* [Adding custom instructions for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/add-custom-instructions)\n\n  Give Copilot additional context on how to understand your project and how to build, test and validate its changes.\n\n* [Using hooks with GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/use-hooks)\n\n  Extend GitHub Copilot agent behavior with custom shell commands at key points during agent execution.\n\n* [Adding agent skills for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/add-skills)\n\n  Modify Copilot's behavior and abilities when it works on particular tasks.\n\n* [Adding MCP servers for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers)\n\n  Extend Copilot's capabilities by connecting Model Context Protocol (MCP) servers to provide additional tools and context.\n\n* [Creating and using custom agents for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/create-custom-agents-for-cli)\n\n  Create specialized agents with tailored expertise for specific development tasks.\n\n* [Using your own LLM models in GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/use-byok-models)\n\n  Use a model from an external provider of your choice in Copilot by supplying your own API key.\n\n* [Finding and installing plugins for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/plugins-finding-installing)\n\n  Extend Copilot's functionality by installing plugins created by the community or by your team.\n\n* [Creating a plugin for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/plugins-creating)\n\n  Create a plugin to share customizations in an easy-to-install package.\n\n* [Creating a plugin marketplace for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/plugins-marketplace)\n\n  You can make CLI plugins that you've created easy to install by adding them to a marketplace.\n\n* [Connecting GitHub Copilot CLI to VS Code](/en/copilot/how-tos/copilot-cli/connecting-vs-code)\n\n  Connect Copilot CLI to VS Code to share context, trust settings, and output.\n\n* [Using GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/use-copilot-cli-agents/overview)\n\n  Learn how to use GitHub Copilot from the command line.\n\n* [Delegating tasks to GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/use-copilot-cli-agents/delegate-tasks-to-cca)\n\n  Use Copilot CLI''s autopilot mode to hand off tasks and have Copilot work autonomously on your behalf.\n\n* [Invoking custom agents](/en/copilot/how-tos/copilot-cli/use-copilot-cli-agents/invoke-custom-agents)\n\n  Use custom agents, skills, and MCP servers in Copilot CLI to extend its capabilities.\n\n* [Steering agents in GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/use-copilot-cli-agents/steer-agents)\n\n  Guide Copilot during task execution to keep work on track with your intent.\n\n* [Requesting a code review with GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/use-copilot-cli-agents/agentic-code-review)\n\n  Use Copilot CLI to review your code changes directly from the terminal.\n\n* [Administering Copilot CLI for your enterprise](/en/copilot/how-tos/copilot-cli/administer-copilot-cli-for-your-enterprise)\n\n  Control the use of Copilot CLI within your enterprise.\n\n* [Speeding up task completion with the `/fleet` command](/en/copilot/how-tos/copilot-cli/speed-up-task-completion)\n\n  Learn how you can speed up the completion of a multi-step implementation plan by using the `/fleet` slash command.\n\n* [Using GitHub Copilot CLI session data](/en/copilot/how-tos/copilot-cli/chronicle)\n\n  Resume previous Copilot CLI sessions, use the `/chronicle` slash command to get insights from your session history, and ask Copilot questions about your CLI usage."}