### Install GitHub Copilot CLI with WinGet Source: https://github.com/github/copilot-cli/blob/main/README.md Install the GitHub Copilot CLI on Windows using the WinGet package manager. This command installs the stable version. ```bash winget install GitHub.Copilot ``` -------------------------------- ### Install GitHub Copilot CLI with wget Source: https://github.com/github/copilot-cli/blob/main/README.md Use this command to install the GitHub Copilot CLI on macOS and Linux using wget. It downloads and executes the installation script. ```bash wget -qO- https://gh.io/copilot-install | bash ``` -------------------------------- ### Install GitHub Copilot CLI prerelease with WinGet Source: https://github.com/github/copilot-cli/blob/main/README.md Install the prerelease version of the GitHub Copilot CLI on Windows using the WinGet package manager. ```bash winget install GitHub.Copilot.Prerelease ``` -------------------------------- ### Install GitHub Copilot CLI prerelease with npm Source: https://github.com/github/copilot-cli/blob/main/README.md Install the prerelease version of the GitHub Copilot CLI globally using npm on macOS, Linux, and Windows. ```bash npm install -g @github/copilot@prerelease ``` -------------------------------- ### Install GitHub Copilot CLI prerelease with Homebrew Source: https://github.com/github/copilot-cli/blob/main/README.md Install the prerelease version of the GitHub Copilot CLI using Homebrew on macOS and Linux. ```bash brew install copilot-cli@prerelease ``` -------------------------------- ### Install GitHub Copilot CLI with Homebrew Source: https://github.com/github/copilot-cli/blob/main/README.md Install the GitHub Copilot CLI using Homebrew on macOS and Linux. This command installs the stable version. ```bash brew install copilot-cli ``` -------------------------------- ### Install GitHub Copilot CLI with curl Source: https://github.com/github/copilot-cli/blob/main/README.md Use this command to install the GitHub Copilot CLI on macOS and Linux using curl. It downloads and executes the installation script. ```bash curl -fsSL https://gh.io/copilot-install | bash ``` -------------------------------- ### Install GitHub Copilot CLI with npm Source: https://github.com/github/copilot-cli/blob/main/README.md Install the GitHub Copilot CLI globally using npm on macOS, Linux, and Windows. This command installs the stable version. ```bash npm install -g @github/copilot ``` -------------------------------- ### Install TypeScript Language Server Source: https://github.com/github/copilot-cli/blob/main/README.md Install the required language server globally to enable TypeScript support in the CLI. ```bash npm install -g typescript-language-server ``` -------------------------------- ### Install GitHub Copilot CLI with custom version and prefix Source: https://github.com/github/copilot-cli/blob/main/README.md Install a specific version of the GitHub Copilot CLI to a custom directory using curl. Set the VERSION and PREFIX environment variables before running the script. ```bash curl -fsSL https://gh.io/copilot-install | VERSION="v0.0.369" PREFIX="$HOME/custom" bash ``` -------------------------------- ### Activate Experimental Mode via CLI Source: https://github.com/github/copilot-cli/blob/main/README.md Use the --experimental flag to enable features currently in development. ```bash copilot --experimental ``` -------------------------------- ### Launch GitHub Copilot CLI Source: https://github.com/github/copilot-cli/blob/main/README.md Launch the GitHub Copilot CLI from your terminal. This command initiates the CLI interface. ```bash copilot ``` -------------------------------- ### Launch GitHub Copilot CLI with banner Source: https://github.com/github/copilot-cli/blob/main/README.md Launch the GitHub Copilot CLI and display the animated banner. Use this command if you want to see the banner again after the first launch. ```bash copilot --banner ``` -------------------------------- ### Configure LSP Servers Source: https://github.com/github/copilot-cli/blob/main/README.md Define LSP server commands and file extensions in the configuration file to enable code intelligence features. ```json { "lspServers": { "typescript": { "command": "typescript-language-server", "args": ["--stdio"], "fileExtensions": { ".ts": "typescript", ".tsx": "typescript" } } } } ``` -------------------------------- ### Authenticate with Personal Access Token Source: https://github.com/github/copilot-cli/blob/main/README.md Set the GH_TOKEN or GITHUB_TOKEN environment variable to authenticate with a fine-grained PAT. Ensure the PAT has the 'Copilot Requests' permission enabled. ```bash export GH_TOKEN= ``` -------------------------------- ### Change Copilot CLI model Source: https://github.com/github/copilot-cli/blob/main/README.md Use the /model slash command within the Copilot CLI to switch between available AI models. The default model is Claude Sonnet 4.5. ```bash /model ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.