API Reference
Class
CopilotCliInstall
Utilities for installing the Copilot CLI.
Inheritance
- Object
- CopilotCliInstall
Methods
public static CopilotCliInstallCommand GetCommand(CopilotCliInstallMethod method, Boolean prerelease = false) #Returns:
CopilotCliInstallCommandReturns a specific install command.
Parameters
- method IntelligenceX.Copilot.CopilotCliInstallMethod
- Install method.
- prerelease System.Boolean = false
- Whether to use prerelease versions.
public static CopilotCliInstallCommand GetDefaultCommand(Boolean prerelease = false) #Returns:
CopilotCliInstallCommandReturns the default install command for the current OS.
Parameters
- prerelease System.Boolean = false
- Whether to use prerelease versions.
public static IReadOnlyList<CopilotCliInstallCommand> GetInstallCommands(Boolean prerelease = false) #Returns:
IReadOnlyList<CopilotCliInstallCommand>Returns install commands suitable for the current OS.
Parameters
- prerelease System.Boolean = false
- Whether to use prerelease versions.
public static String GetInstallInstructions(Boolean prerelease = false) #Returns:
StringReturns human-readable install instructions.
Parameters
- prerelease System.Boolean = false
- Whether to use prerelease versions.
public static async Task<Int32> InstallAsync(CopilotCliInstallCommand command, CancellationToken cancellationToken = null) #Returns:
Task<Int32>Executes the provided install command.
Parameters
- command IntelligenceX.Copilot.CopilotCliInstallCommand
- Install command.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.
public static String TryResolveInstalledCliPath(String cliPath) #Returns:
StringAttempts to resolve a Copilot CLI binary from common install locations even when PATH is stale.
Parameters
- cliPath System.String
- CLI executable name or path.
Returns
The resolved absolute path when found; otherwise null.