Skip to content

Add PowerShell, GitHub Copilot, Claude AI, and Git to Windows 11 right-click context menu. Smart tool detection with user-level registry modifications only.

License

Notifications You must be signed in to change notification settings

droltr/windows-cli-context-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows 11 CLI Context Menu Manager

🚀 Add your favorite CLI tools to Windows 11 right-click context menu with a single click

Version Platform License

Quick access to PowerShell, GitHub Copilot, Claude AI, and Git from any folder in Windows Explorer.

Created by droltr

✨ Features

  • 🔧 PowerShell Here - Launch PowerShell 7 in current directory
  • 🤖 Copilot Here - Start GitHub Copilot CLI
  • 🧠 Claude Here - Launch Claude AI CLI
  • 📦 Git Init Here - Initialize Git repository
  • 🎯 Smart Detection - Automatically finds tools in PATH, NPM global, and custom locations
  • 🔄 Easy Management - Interactive menu for Install/Uninstall/Reinstall
  • 🛡️ Safe - Only modifies HKCU registry (user-level, no system changes)

🚀 Quick Start

Prerequisites

  • Windows 11 (or Windows 10)
  • PowerShell 7+ (or Windows PowerShell 5.1)
  • Administrator rights
  • At least one CLI tool installed

Installation

  1. Download the project files
  2. Run Menu.bat as Administrator
  3. Select option [1] Install Menu
  4. Done! Right-click in any folder to see "CLI Tools"

Direct Installation

.\Install-CLIContextMenu.ps1

📋 Usage

Interactive Menu (Menu.bat)

Menu.bat

Options:

  • [1] Install Menu - Add CLI tools to context menu
  • [2] Uninstall Menu - Remove from context menu
  • [3] Reinstall Menu - Refresh menu items
  • [4] Check Tools - Verify installed tools

Context Menu

  1. Open File Explorer
  2. Navigate to any folder
  3. Right-click in empty space
  4. Select "CLI Tools"
  5. Choose your tool

🔧 Supported Tools

Tool Detection Example Path
PowerShell 7 pwsh.exe C:\Program Files\PowerShell\7\pwsh.exe
GitHub Copilot copilot command %LOCALAPPDATA%\Microsoft\WinGet\Links\copilot.exe
Claude CLI NPM global %APPDATA%\npm\claude.cmd
Git git.exe C:\Program Files\Git\cmd\git.exe

Installing Tools

# PowerShell 7
winget install Microsoft.PowerShell

# GitHub Copilot CLI
winget install GitHub.GitHubCopilotCLI

# Claude CLI
npm install -g @anthropic-ai/claude-cli

# Git
winget install Git.Git

🗑️ Uninstallation

Via Menu

Menu.bat
# Select [2] Uninstall Menu

Via Script

.\Install-CLIContextMenu.ps1 -Uninstall

🛠️ Technical Details

Registry Location

HKCU:\Software\Classes\Directory\Background\shell\CLITools

Commands

  • PowerShell: pwsh.exe -NoExit -Command "Set-Location '%V'"
  • Copilot: pwsh.exe -NoExit -Command "Set-Location '%V'; copilot"
  • Claude: cmd.exe /k "cd /d "%V" & claude"
  • Git Init: pwsh.exe -NoExit -Command "Set-Location '%V'; git init; git status"

🔒 Security

  • ✅ HKCU registry only (user-level)
  • ✅ No system-wide changes
  • ✅ Open source code
  • ✅ No data collection

🐛 Troubleshooting

Script won't run

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Menu doesn't appear

Stop-Process -Name explorer -Force

Tool not detected

Get-Command copilot -ErrorAction SilentlyContinue

📝 Version History

v0.8 (2025-12-22) - Current

  • Initial public release
  • Smart tool detection
  • Interactive menu manager
  • Support for 4 CLI tools
  • Tested and confirmed working

See CHANGELOG.md for details.

🤝 Contributing

Contributions welcome! Feel free to submit issues or pull requests.

📄 License

MIT License - see LICENSE file.

🙏 Credits

Created by droltr

Inspired by the need for quick CLI access in Windows 11.

🔗 Links


Made with ❤️ for Windows CLI enthusiasts

About

Add PowerShell, GitHub Copilot, Claude AI, and Git to Windows 11 right-click context menu. Smart tool detection with user-level registry modifications only.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published