⚠️ MAJOR UPDATE: This repository has been completely updated to reflect the deprecation of thegh copilotCLI extension and the introduction of the new standalone GitHub Copilot CLI.
| Aspect | Old gh copilot (DEPRECATED) |
New copilot (CURRENT) |
|---|---|---|
| Installation | gh extension install github/gh-copilot |
npm install -g @github/copilot |
| Command | gh copilot chat, gh copilot ask |
copilot (interactive) |
| Dependencies | GitHub CLI required | Node.js 22+ only |
| Configuration | Config files in ~/.config/gh/copilot/ |
Environment variables |
| Authentication | Via GitHub CLI | Direct PAT or OAuth (/login) |
| Models | Multiple CLI options | Claude Sonnet 4 (default), GPT-5 |
| Interface | Command flags and options | Natural language conversation |
- README.md - Comprehensive overhaul for new CLI
- QUICKSTART.md - New installation and usage patterns
- EXAMPLES.md - All examples converted to new format
- INDEX.md - Migration guidance and new structure
- SUMMARY.md - This file, updated with migration info
- setup.sh - Legacy script with deprecation warning
- prerequisites-check.sh - Updated for new requirements (Node.js 22+)
| Component | Old Requirement | New Requirement |
|---|---|---|
| Node.js | 18+ (recommended 22+) | 22+ (REQUIRED) |
| GitHub CLI | Required (2.40.0+) | Not needed |
| npm | 9+ | 10+ (required) |
| PowerShell | Not mentioned | 6+ (Windows only) |
# OLD (deprecated)
gh auth login
gh extension install github/gh-copilot
# NEW (current)
npm install -g @github/copilot
copilot # Launch and authenticate with /login- Comprehensive documentation - All updated for new CLI
- Prerequisites checking - Updated requirements
- Troubleshooting guides - New common issues addressed
- Development workflows - Adapted to conversational interface
- Best practices - Updated for new capabilities
- Command-line flags - Replaced with natural language
- Config file system - Now uses environment variables
- Batch operations - Now conversational workflow
- GitHub CLI integration - Built-in to new CLI
- Terminal-native development - No context switching
- Automatic GitHub integration - Repos, issues, PRs
- Project context detection - Launch from project directory
- MCP-powered extensibility - Built-in and custom servers
- Agentic capabilities - Plan and execute complex tasks
# Environment variables (replaces config files)
export COPILOT_MODEL=claude-sonnet-4 # or gpt-5
export GH_TOKEN="your-pat-here" # Authentication
# Launch methods
copilot # Default (Claude Sonnet 4)
copilot --banner # With animated banner
COPILOT_MODEL=gpt-5 copilot # With GPT-5- Check Node.js: Ensure version 22+
- Install:
npm install -g @github/copilot - Launch:
copilot - Authenticate: Use
/logincommand
- Optional cleanup:
gh extension remove github/gh-copilot - Update Node.js: Ensure version 22+
- Install new CLI:
npm install -g @github/copilot - Set up auth:
export GH_TOKEN="your-pat"or use OAuth - Test:
copilot --version
- Simpler installation - No GitHub CLI dependency
- Better project integration - Automatic context detection
- More natural interface - Conversational vs command flags
- Enhanced GitHub integration - Built-in, not configured
- Future-proof - Active development vs deprecated extension
- Learning curve - Different interaction model
- Node.js 22 required - Stricter requirement
- Some advanced features pending - Being reimplemented
- Different configuration - Environment variables vs files
- Official Repo: https://github.com/github/copilot-cli
- Documentation: https://docs.github.com/copilot/concepts/agents/about-copilot-cli
- This Repo: All files updated with migration guidance
- ✅ Accurate information - All docs reflect current reality
- ✅ Clear migration path - Step-by-step guidance provided
- ✅ Preserved learning value - Examples adapted, not removed
- ✅ Future-focused - Emphasizes new CLI capabilities
- ✅ Troubleshooting updated - New common issues addressed
The repository now serves as a comprehensive migration guide and reference for the new GitHub Copilot CLI, helping users transition from the deprecated extension to the modern standalone interface.