GitHub Copilot CLI로 터미널 명령어 마스터하기

기초약 10분4단계

터미널 명령어가 기억나지 않을 때 Copilot CLI에게 물어보면 됩니다. 자연어로 설명하면 올바른 명령어를 제안해줘요.

따라 하기

1단계 / 4

GitHub Copilot CLI 설치하기

  1. 1터미널을 열고 'npm install -g @githubnext/github-copilot-cli'를 입력해 설치합니다.
  2. 2Node.js가 없다면 nodejs.org에서 먼저 설치합니다.
  3. 3설치 완료 후 github-copilot-cli auth를 입력해 GitHub 계정으로 인증합니다.
  4. 브라우저에서 인증 화면이 열리고 코드를 입력하면 연동됩니다.
  5. 4설치 확인: 터미널에서 ghcs --version을 입력해 버전이 출력되면 성공입니다.
GitHub Copilot 열기

이해를 돕는 예시 그림이에요. 실제 화면과 다를 수 있어요.

Terminal
➜ npx -y @modelcontextprotocol/...
Need to install the following packages:
@modelcontextprotocol/server-filesystem
Ok to proceed? (y) y
✓ MCP server started
Waiting for connection...

누를 위치 터미널›npm install -g @githubnext/github-copilot-cli›github-copilot-cli auth›인증 완료

팁 Mac에서 Homebrew가 설치되어 있다면 'brew install gh && gh extension install github/gh-copilot' 방식으로도 설치할 수 있어요.

막히면 볼 것

GitHub Copilot 말고 다른 도구로 하기