IntelligenceX
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
Install method.
prerelease System.Boolean = false
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
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: String

Returns 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.