
Your GitHub Copilot subscription can be accessed from the command line. This requires that your Copilot subscription be active and your GitHub account be authenticated. This is done through the official GitHub command line interface called gh
. You can read the full documentation for deploying from the command line on the github-copilot-in-the-cli docs.
Sections
Connect your GitHub Account to the SCC
We recommend setting up your GitHub account with two-factor authentication (2FA). Please follow our directions on Using the SCC with GitHub 2FA.
Install GitHub Copilot
- Load the
gh
module and authenticate with the commandgh auth login
. In the video below, the following options were chosen: GitHub.com, HTTPS, and y.
- Next you will choose to authenticate via a local browser or token. In the video below, we show authenticating with a browser.
- After authenticated, install the GitHub Copilot extension with the following command:
[rcs@scc1 ~] gh extension install github/gh-copilot
Now your ready to start using GitHub Copilot from the command line!
Last updated: Loading…