IntelligenceX

API Reference

Class

CopilotCliInstall

Namespace IntelligenceX.Copilot
Assembly IntelligenceX
Modifiers static

Utilities for installing the Copilot CLI.

Inheritance

  • Object
  • CopilotCliInstall

Methods

public static CopilotCliInstallCommand GetCommand(CopilotCliInstallMethod method, Boolean prerelease = false) #
Returns: CopilotCliInstallCommand

Returns a specific install command.

Parameters

method IntelligenceX.Copilot.CopilotCliInstallMethod requiredposition: 0
Install method.
prerelease System.Boolean = false optionalposition: 1
Whether to use prerelease versions.
public static CopilotCliInstallCommand GetDefaultCommand(Boolean prerelease = false) #
Returns: CopilotCliInstallCommand

Returns the default install command for the current OS.

Parameters

prerelease System.Boolean = false optionalposition: 0
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 optionalposition: 0
Whether to use prerelease versions.
public static String GetInstallInstructions(Boolean prerelease = false) #
Returns: String

Returns human-readable install instructions.

Parameters

prerelease System.Boolean = false optionalposition: 0
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 requiredposition: 0
Install command.
cancellationToken System.Threading.CancellationToken = null optionalposition: 1
Cancellation token.
public static String TryResolveInstalledCliPath(String cliPath) #
Returns: String

Attempts to resolve a Copilot CLI binary from common install locations even when PATH is stale.

Parameters

cliPath System.String requiredposition: 0
CLI executable name or path.

Returns

The resolved absolute path when found; otherwise null.