Using GitHub Copilot in the CLI – GitHub Docs

You can use gh, the GitHub command line interface, to work with GitHub Copilot in the CLI.