Movatterモバイル変換


[0]ホーム

URL:


GitHub Next Logo

Copilot for CLI

Ever having trouble remembering shell commands and flags for this or that? Ever wish you could justsay what you want the shell to do? Don't worry: we're building GitHub Copilot assistance right into your terminal.

What's it for?
Translating natural language to terminal commands
Share
Stage
Product
Who made it?
Share
This is a concluded exploration by GitHub Next.
GitHub may or or may not release products related to this research in the future.

The Copilot for CLI technical preview ended on March 21, 2024.

GitHub Copilot in the CLI is now generally available.

The terminal is a powerful place: In a single line of arcane shell magic, youcan transform files and parse data at will. But it can take many years ofregular use to become a shell wizard. Even with solid proficiency, most of usregularly need to optimistically type--help or scroll through man pages.Oftentimes, you simply turn to a web search, hopefully finding something like arelevant StackOverflow answer that can get you to the next step.

What if you had a shell wizard by your side, with comprehensive knowledge of flagsand the entire AWK language? When you needed something morecomplicated thancd myrepo, you could turn to this guru and justask - inregular, human language, what you wanted to get done!

Three modes of interaction

Copilot for CLI provides three shell commands:??,git? andgh?:

  • ?? is meant as the general-purpose goto for arbitrary shell commands. Itwill compose commands and loops, and throw around obscurefind flagsto satisfy your query.
Video walkthrough of the "??" CLI command.
  • git? is used for searching specifically forgit invocations. Compared to??it will be more powerful at generating Git commands, and your queries can bemore succinct when you don't need to explain that you're in the context of Git.
Video walkthrough of the "git?" CLI command.
  • gh? combines the power of the GitHub CLI command and query interface withthe convenience of having AI generate the complicated flags andjqexpressions for you.
Video walkthrough of the "gh?" CLI command.

[8]ページ先頭

©2009-2025 Movatter.jp