Upgrade to Pro — share decks privately, control downloads, hide ads and more …

GitHub Copilot CLI を使いやすくしよう

GitHub Copilot CLI を使いやすくしよう

2026/02/12 クラメソふくおかIT勉強会でのLT資料です
https://classmethod.connpass.com/event/381672/

Avatar for Yuta Matsumura

Yuta Matsumura

February 12, 2026
Tweet

More Decks by Yuta Matsumura

Other Decks in Technology

Transcript

  1. GitHub Copilot CLI • GitHub Copilot のコマンドラインツール `copilot` • Visual

    Studio Code の Copilot でできることは大抵できる • おすすめの使い方は • Markdown 文章の生成 (VS Code 等では Markdown がレンダリングされてコピペしづらい) • 他のコマンドライン結果を Copilot に渡す copilot -p "1行コミットメッセージを生成して: $(git diff --cached)" © 2026 Yuta Matsumura. #cm_fukuoka_study 3
  2. // All platforms npm install -g @github/copilot // Windows winget

    install GitHub.Copilot // macOS and Linux brew install copilot-cli // Install script (macOS and Linux) curl -fsSL https://gh.io/copilot-install | bash © 2026 Yuta Matsumura. #cm_fukuoka_study 4 インストール方法
  3. copilot --model gpt-5 --prompt "..." © 2026 Yuta Matsumura. #cm_fukuoka_study

    9 モデル指定でプロンプト入力 Claude を使いたい ときもある・・・
  4. © 2026 Yuta Matsumura. #cm_fukuoka_study 10 function cos ($prompt) {

    copilot -- model " claude - sonnet - 4.5 " ... } function coo ($prompt) { copilot -- model " claude - opus - 4.5 " ... } function coc ($prompt) { copilot -- model " gpt - 5.1 - codex - max" ... } function cog ($prompt) { copilot -- model " gemini - 3- pro - preview " ... } エイリアスを設定しよう
  5. Appendix • GitHub Copilot CLI • GitHub Copilot CLI -

    GitHub Docs • Scripting the GitHub Copilot CLI - Deep Dive © 2026 Yuta Matsumura. #cm_fukuoka_study 12
  6. 松村 優大 (MLBお兄さん) © 2026 Yuta Matsumura. #cm_fukuoka_study 株式会社オルターブース (Chief

    Technical Architect) Microsoft MVP for Developer Technologies Microsoft Top Partner Engineer Award 2025 GitHub 公認トレーナー C#, PHP, Azure, GitHub #fukuten #devblogradio #fukuoka_mcp https://linktr.ee/tsubakimoto 13
  7. 告知 Fukuoka MCP と LINE Developer Community さんで ハンズオンイベントを共催します [2月19日

    19時~ AIPカフェ] © 2026 Yuta Matsumura. #cm_fukuoka_study 14 connpass