0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

GitHub Copilot CLI Cheatsheet

0
Posted at

GitHub Copilot CLIを最近よく使うので、ちょっと真面目に見てみました。
使えそうなリンクとコマンドを置いておきます。

参考リンク

GitHub Copilot CLI のベスト プラクティス

ここにAgentなどのサンプルある

初心者向けのチュートリアルあり

コマンド

セッション系

resume

セッションの再開(選択 → 再開)

copilot --resume
/resume

name / rename

セッション名を付けてセッション開始か、今のセッション名変更。

# Name a session right when you start it
copilot --name book-app-review

# rename a current session
/rename book-app-review

delete

不要セッション削除

> /session delete            # Deletes the current session
> /session delete abc123     # Deletes a specific session by ID

clear / new

/clear は session 内容保存しないで終了。 /new はsession 内容保存して新しいセッション開始

# Abandons the current session (no history saved) and starts a fresh conversation
/clear

# Ends the current session (saving it to history for search/resume) and starts a fresh conversation
/new

chronicle

直近セッションからのレポート生成/カスタム命令生成

# 最近の CLI セッションで作業した内容を要約した短いレポートを生成
/chronicle standup

# 将来 Copilot 理解するのに役立つカスタム命令を生成
# 「どの推奨事項を .github/copilot-instructions.md に追加しますか?番号で選んでください(例: 1,2,3,5)。」と聞かれた
/chronicle improve

お客様のセッション履歴に関する質問に対して、/chronicleコマンドと Copilot が回答する機能は、現在は試験的な機能であり、お客様が /experimental on スラッシュ コマンドまたは --experimental コマンド ライン オプションを使用した場合にのみ使用できます。

通常コマンド

plan

コーディングする前に実装計画を作成

/plan <計画させる内容>

ask

Context に保存しない質問。

/ask <query>

ide

VS Code のコード選択などと組み合わせられる

/ide

# /ide の後に質問など
/ask 選択箇所の解説をして

plugin インストール

主にここからインストール

# maeketplace のリストアップ(今は2種類)
/plugin marketplace list
 
# marketplace 内のプラグインを確認 
/plugin marketplace browse awsome-copilot

# インストール
/plugin install ai-team-orchestration@awesome-copilot

# 更新
/plugin update workiq@copilot-plugins
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?