# GitHub Copilot CLI

Use Copilot directly from your terminal to answer questions, write and debug code, and interact with GitHub.

## Recommended

* [Using GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/use-copilot-cli-agents/overview)

  Learn how to use GitHub Copilot from the command line.

* [Best practices for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/cli-best-practices)

  Learn how to get the most out of GitHub Copilot CLI.

* [GitHub Copilot CLI command reference](/en/copilot/reference/copilot-cli-reference/cli-command-reference)

  Find commands and keyboard shortcuts to help you use Copilot CLI effectively.

## Articles

* [Getting started with GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/cli-getting-started)

  Quickly learn how to use GitHub Copilot CLI.

* [Best practices for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/cli-best-practices)

  Learn how to get the most out of GitHub Copilot CLI.

* [Installing GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli)

  Learn how to install Copilot CLI so that you can use Copilot directly from the command line.

* [Authenticating GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/authenticate-copilot-cli)

  Authenticate Copilot CLI so that you can use Copilot directly from the command line.

* [Configuring GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/configure-copilot-cli)

  Configure trusted directories, tool access, and path and URL permissions for Copilot CLI

* [Adding LSP servers for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/add-lsp-servers)

  You can add LSP servers to give Copilot CLI precise code intelligence, improving its ability to navigate definitions, find references, and rename symbols.

* [Troubleshooting GitHub Copilot CLI authentication](/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/troubleshoot-copilot-cli-auth)

  Diagnose authentication failures when signing in to Copilot CLI.

* [Allowing and denying tool use](/en/copilot/how-tos/copilot-cli/allowing-tools)

  Control which tools Copilot CLI can use to avoid unintended changes.

* [Steering a GitHub Copilot CLI session from another device](/en/copilot/how-tos/copilot-cli/steer-remotely)

  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.

* [Quickstart for automating with GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/automate-copilot-cli/quickstart)

  Build an automation with Copilot CLI in minutes.

* [Running GitHub Copilot CLI programmatically](/en/copilot/how-tos/copilot-cli/automate-copilot-cli/run-cli-programmatically)

  Use Copilot CLI in the terminal, in scripts, or in Actions workflows.

* [Automating tasks with Copilot CLI and GitHub Actions](/en/copilot/how-tos/copilot-cli/automate-copilot-cli/automate-with-actions)

  Integrate GitHub Copilot CLI into your GitHub Actions workflows.

* [Overview of customizing GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/overview)

  Copilot CLI works best when customized for your specific project and workflow.

* [Adding custom instructions for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/add-custom-instructions)

  Give Copilot additional context on how to understand your project and how to build, test and validate its changes.

* [Using hooks with GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/use-hooks)

  Extend GitHub Copilot agent behavior with custom shell commands at key points during agent execution.

* [Adding agent skills for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/add-skills)

  Modify Copilot's behavior and abilities when it works on particular tasks.

* [Adding MCP servers for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers)

  Extend Copilot's capabilities by connecting Model Context Protocol (MCP) servers to provide additional tools and context.

* [Creating and using custom agents for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/create-custom-agents-for-cli)

  Create specialized agents with tailored expertise for specific development tasks.

* [Using your own LLM models in GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/use-byok-models)

  Use a model from an external provider of your choice in Copilot by supplying your own API key.

* [Finding and installing plugins for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/plugins-finding-installing)

  Extend Copilot's functionality by installing plugins created by the community or by your team.

* [Creating a plugin for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/plugins-creating)

  Create a plugin to share customizations in an easy-to-install package.

* [Creating a plugin marketplace for GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/customize-copilot/plugins-marketplace)

  You can make CLI plugins that you've created easy to install by adding them to a marketplace.

* [Connecting GitHub Copilot CLI to VS Code](/en/copilot/how-tos/copilot-cli/connecting-vs-code)

  Connect Copilot CLI to VS Code to share context, trust settings, and output.

* [Using GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/use-copilot-cli-agents/overview)

  Learn how to use GitHub Copilot from the command line.

* [Delegating tasks to Copilot](/en/copilot/how-tos/copilot-cli/use-copilot-cli-agents/delegate-tasks-to-cca)

  Use autopilot mode, or the `/delegate` slash command, to get Copilot to work autonomously on your behalf.

* [Invoking custom agents](/en/copilot/how-tos/copilot-cli/use-copilot-cli-agents/invoke-custom-agents)

  Use custom agents, skills, and MCP servers in Copilot CLI to extend its capabilities.

* [Steering agents in GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/use-copilot-cli-agents/steer-agents)

  Guide Copilot during task execution to keep work on track with your intent.

* [Requesting a code review with GitHub Copilot CLI](/en/copilot/how-tos/copilot-cli/use-copilot-cli-agents/agentic-code-review)

  Use Copilot CLI to review your code changes directly from the terminal.

* [Administering Copilot CLI for your enterprise](/en/copilot/how-tos/copilot-cli/administer-copilot-cli-for-your-enterprise)

  Control the use of Copilot CLI within your enterprise.

* [Speeding up task completion with the `/fleet` command](/en/copilot/how-tos/copilot-cli/speed-up-task-completion)

  Learn how you can speed up the completion of a multi-step implementation plan by using the `/fleet` slash command.

* [Managing pull requests with the /pr command](/en/copilot/how-tos/copilot-cli/manage-pull-requests)

  Use the `/pr` slash command to view, create, and fix pull requests directly from Copilot CLI.

* [Rolling back changes made during a GitHub Copilot CLI session](/en/copilot/how-tos/copilot-cli/roll-back-changes)

  Rewind your Copilot CLI session to a previous prompt to undo changes and restore your repository to a previous state.

* [Using GitHub Copilot CLI session data](/en/copilot/how-tos/copilot-cli/chronicle)

  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.