Watch Aspire live streamsDocsTry Aspire

executeCommandAsync

Method
📦 Aspire.Hosting v13.6.0
interface ResourceCommandService {
// ... omitted for brevity
executeCommandAsync(
resource: string | IResource,
commandName: string,
arguments?: Dict<string,string>,
cancellationToken?: cancellationToken): ExecuteCommandResult;
}

Signature

methodexecuteCommandAsync
Executes a command for the specified resource.
executeCommandAsync(
resource: string | IResource,
commandName: string,
arguments?: Dict<string,string>,
cancellationToken?: cancellationToken): ExecuteCommandResult
resourcestring | IResource
commandNamestring
argumentsDict<string,string>optional
cancellationTokencancellationTokenoptional
ExecuteCommandResult

Applies to

This method applies to the following types: