# Get-IntelligenceXHealth

Runs health checks for OpenAI app-server and optional Copilot CLI.

Command 

**Module**

`IntelligenceX.PowerShell`

**Inputs**

`IntelligenceX.OpenAI.IntelligenceXClient`

**Outputs**

`IntelligenceX.PowerShell.HealthReportRecord`

Runs health checks for OpenAI app-server and optional Copilot CLI.

## Syntax

```
Get-IntelligenceXHealth
[-Client <IntelligenceXClient>]
[-Copilot]
[-CopilotAutoInstall]
[-CopilotCliPath <string>]
[-CopilotCliUrl <string>]
[-CopilotInstallMethod <Auto|Winget|Homebrew|Npm|Script>]
[-CopilotInstallPrerelease]
[-CopilotWorkingDirectory <string>]
[-NoConfig]
[<CommonParameters>]
```

[#](#method-get-intelligencexhealth-intelligencexclient-switchparameter-switchparameter-string-string-copilotcliinstallmethod-switchparameter-string-switchparameter)

## Examples

### Example 1

```powershell
Get-IntelligenceXHealth
```

Check OpenAI app-server health

### Example 2

```powershell
Get-IntelligenceXHealth -Copilot
```

Check OpenAI and Copilot CLI health

### Example 3

```powershell
Get-IntelligenceXHealth -Copilot -CopilotCliPath "copilot" -CopilotAutoInstall
```

Check Copilot with explicit path and auto-install enabled

## Parameters

**-Client IntelligenceXClient optionalpipeline: true (ByValue)**

OpenAI/app-server client instance. Defaults to the active client.

**-Copilot SwitchParameter optional**

Run a Copilot CLI health check.

**-CopilotAutoInstall SwitchParameter optional**

Auto-install Copilot CLI if missing.

**-CopilotCliPath string optional**

Copilot CLI path.

**-CopilotCliUrl string optional**

Copilot CLI URL (host:port).

**-CopilotInstallMethod CopilotCliInstallMethod optional**

Copilot auto-install method to use when -CopilotAutoInstall is set. Possible values: Auto, Winget, Homebrew, Npm, Script

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

**-CopilotInstallPrerelease SwitchParameter optional**

Copilot auto-install prerelease.

**-CopilotWorkingDirectory string optional**

Copilot CLI working directory.

**-NoConfig SwitchParameter optional**

Ignore .intelligencex/config.json overrides.

## 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:9A8A0A5961C7F8221AD5BFFB23DADFC79B2A00DC024FEFD19A1492F759EABF80 -->
