# Install-IntelligenceXCopilotCli

Installs GitHub Copilot CLI using a selected install strategy.

Command 

**Module**

`IntelligenceX.PowerShell`

**Outputs**

`IntelligenceX.Copilot.CopilotCliInstallCommand`

Installs GitHub Copilot CLI using a selected install strategy.

## Syntax

```
Install-IntelligenceXCopilotCli
[-Method <Auto|Winget|Homebrew|Npm|Script>]
[-PassThru]
[-Prerelease]
[<CommonParameters>]
```

[#](#method-install-intelligencexcopilotcli-copilotcliinstallmethod-switchparameter-switchparameter)

## Examples

### Example 1

```powershell
Install-IntelligenceXCopilotCli
```

Install Copilot CLI using the auto method

### Example 2

```powershell
Install-IntelligenceXCopilotCli -WhatIf
```

Preview installation without executing changes

### Example 3

```powershell
Install-IntelligenceXCopilotCli -Prerelease -PassThru
```

Install prerelease and return command metadata

## Parameters

**-Method CopilotCliInstallMethod optional**

Install method to use (Auto, Winget, Brew, Apt, etc. depending on platform). Possible values: Auto, Winget, Homebrew, Npm, Script

Possible values: `Auto`, `Winget`, `Homebrew`, `Npm`, `Script`

**-PassThru SwitchParameter optional**

Returns the resolved install command object after successful execution.

**-Prerelease SwitchParameter optional**

Installs a prerelease build when available.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:6E24471BDACB074A53D4A2EA3C1B1CB8ACE01A0517509B04BC8D7AFD209EAED5 -->
