Copilot/CLI: Difference between revisions
(Created page with "== Copilot CLI == 1. Install GitHub CLI Choose the command for your operating system: macOS: brew install gh Windows (Winget): winget install GitHub.cli Windows (Scoop): scoop install gh Linux (Ubuntu/Debian): sudo apt install gh Linux (Fedora/RHEL): sudo dnf install gh --- 2. Authenticate: gh auth login --- 3. Install the Copilot Extension: gh extension install github/gh-copilot --- 4. Update the Extension (Optional) gh extension upgrade gh-copilot...") |
|||
| Line 1: | Line 1: | ||
== Copilot CLI == | == Copilot CLI == | ||
== Copilot CLI Installation == | |||
=== Scripted Install === | |||
Install it from https://github.com/github/copilot-cli | |||
curl -fsSL https://gh.io/copilot-install | bash | |||
wget -qO- https://gh.io/copilot-install | bash | |||
== Install in GitHub CLI == | |||
=== Install GitHub CLI === | |||
1. Install GitHub CLI | 1. Install GitHub CLI | ||
| Line 20: | Line 32: | ||
sudo dnf install gh | sudo dnf install gh | ||
=== GH Authenticate === | |||
2. Authenticate: | 2. Authenticate: | ||
gh auth login | gh auth login | ||
=== Install GH Copilot Extension === | |||
3. Install the Copilot Extension: | 3. Install the Copilot Extension: | ||
gh extension install github/gh-copilot | gh extension install github/gh-copilot | ||
=== Update GH Copilot Extension === | |||
4. Update the Extension (Optional) | 4. Update the Extension (Optional) | ||
gh extension upgrade gh-copilot | gh extension upgrade gh-copilot | ||
=== Use GH Copilot CLI === | |||
5. Use the CLI | 5. Use the CLI | ||
| Line 44: | Line 56: | ||
If you want, I can help you set up aliases (like ?? or git?) to make triggering Copilot suggestions much faster in your shell. Let me know if you use Bash, Zsh, or PowerShell. | If you want, I can help you set up aliases (like ?? or git?) to make triggering Copilot suggestions much faster in your shell. Let me know if you use Bash, Zsh, or PowerShell. | ||
=== References to GH Copilot CLI === | |||
References | References | ||
| Line 54: | Line 66: | ||
* https://www.promptfu.com/blog/github-copilot-cli-mastery-guide/ | * https://www.promptfu.com/blog/github-copilot-cli-mastery-guide/ | ||
== Set Model == | |||
Set Model: | Set Model: | ||
| Line 71: | Line 83: | ||
Calude Opus 5 supports effort levels, but Claude Sonnet 4.5 and Claude Haiku 4.5 do not | Calude Opus 5 supports effort levels, but Claude Sonnet 4.5 and Claude Haiku 4.5 do not | ||
== Multi-Line == | |||
Use: Ctrl+g to bring up vim | Use: Ctrl+g to bring up vim | ||
| Line 78: | Line 90: | ||
Note: shift+enter does not work | Note: shift+enter does not work | ||
== keywords == | |||
Revision as of 18:05, 14 September 2026
Copilot CLI
Copilot CLI Installation
Scripted Install
Install it from https://github.com/github/copilot-cli
curl -fsSL https://gh.io/copilot-install | bash wget -qO- https://gh.io/copilot-install | bash
Install in GitHub CLI
Install GitHub CLI
1. Install GitHub CLI
Choose the command for your operating system:
macOS:
brew install gh
Windows (Winget):
winget install GitHub.cli
Windows (Scoop):
scoop install gh
Linux (Ubuntu/Debian):
sudo apt install gh
Linux (Fedora/RHEL):
sudo dnf install gh
GH Authenticate
2. Authenticate:
gh auth login
Install GH Copilot Extension
3. Install the Copilot Extension:
gh extension install github/gh-copilot
Update GH Copilot Extension
4. Update the Extension (Optional)
gh extension upgrade gh-copilot
Use GH Copilot CLI
5. Use the CLI
gh copilot explain "command"
gh copilot suggest "what you want to do"
If you want, I can help you set up aliases (like ?? or git?) to make triggering Copilot suggestions much faster in your shell. Let me know if you use Bash, Zsh, or PowerShell.
References to GH Copilot CLI
References
- https://docs.github.com/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli
- https://www.linkedin.com/posts/github_have-you-tried-github-copilot-in-the-cli-activity-7179897577172074496-jw4T
- https://www.linkedin.com/posts/juliangoldieseo_new-github-copilot-cli-is-insane-activity-7377931244484964352-mr2Y
- https://itnext.io/getting-started-with-github-copilot-66fb63c88cbe
- https://apito.ai/en/blog/tools/github-copilot-claudeapi-byok-setup/
- https://www.promptfu.com/blog/github-copilot-cli-mastery-guide/
Set Model
Set Model:
/config model claude-opus-5
Common options:
- claude-opus-5
- claude-sonnet-4.5
- claude-haiku-4.5
Set effort level: ("Reasoning effort for models that support it")
/config effortLevel xhigh options: none, minimal, low, medium, high, xhigh, max
Calude Opus 5 supports effort levels, but Claude Sonnet 4.5 and Claude Haiku 4.5 do not
Multi-Line
Use: Ctrl+g to bring up vim
Or alt+enter
Note: shift+enter does not work