Skip to content

Latest commit

 

History

History
133 lines (104 loc) · 5.17 KB

File metadata and controls

133 lines (104 loc) · 5.17 KB

GitHub Copilot CLI Repository Summary

⚠️ MAJOR UPDATE: This repository has been completely updated to reflect the deprecation of the gh copilot CLI extension and the introduction of the new standalone GitHub Copilot CLI.

What Changed

Migration from Old to New 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

Updated Documentation

✅ Completely Updated Files

  • 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

⚠️ Legacy Files (Updated with Deprecation Notices)

  • setup.sh - Legacy script with deprecation warning
  • prerequisites-check.sh - Updated for new requirements (Node.js 22+)

New Requirements

System Requirements Changed

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)

Installation Method

# OLD (deprecated)
gh auth login
gh extension install github/gh-copilot

# NEW (current)  
npm install -g @github/copilot
copilot  # Launch and authenticate with /login

Key Features Preserved (But Updated)

✅ What Still Works (Adapted)

  • 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

❌ What's Deprecated

  • 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

New Capabilities Highlighted

🆕 Enhanced Features

  • 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

🔧 New Configuration Method

# 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

Migration Path for Users

For New Users

  1. Check Node.js: Ensure version 22+
  2. Install: npm install -g @github/copilot
  3. Launch: copilot
  4. Authenticate: Use /login command

For Existing Users

  1. Optional cleanup: gh extension remove github/gh-copilot
  2. Update Node.js: Ensure version 22+
  3. Install new CLI: npm install -g @github/copilot
  4. Set up auth: export GH_TOKEN="your-pat" or use OAuth
  5. Test: copilot --version

What Users Gain

✅ Improvements

  • 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

⚠️ Trade-offs

  • Learning curve - Different interaction model
  • Node.js 22 required - Stricter requirement
  • Some advanced features pending - Being reimplemented
  • Different configuration - Environment variables vs files

Resources for Migration

Success Metrics Achieved

  1. ✅ Accurate information - All docs reflect current reality
  2. ✅ Clear migration path - Step-by-step guidance provided
  3. ✅ Preserved learning value - Examples adapted, not removed
  4. ✅ Future-focused - Emphasizes new CLI capabilities
  5. ✅ 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.