GitHub Copilot CLI로 터미널 명령어 마스터하기
터미널 명령어가 기억나지 않을 때 Copilot CLI에게 물어보면 됩니다. 자연어로 설명하면 올바른 명령어를 제안해줘요.
따라 하기
1단계
GitHub Copilot CLI 설치하기
- 1터미널을 열고 'npm install -g @githubnext/github-copilot-cli'를 입력해 설치합니다.
- 2Node.js가 없다면 nodejs.org에서 먼저 설치합니다.
- 3설치 완료 후 github-copilot-cli auth를 입력해 GitHub 계정으로 인증합니다.
- 브라우저에서 인증 화면이 열리고 코드를 입력하면 연동됩니다.
- 4설치 확인: 터미널에서 ghcs --version을 입력해 버전이 출력되면 성공입니다.
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' 방식으로도 설치할 수 있어요.