Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

withProcessCommand

Method
📦 Aspire.Hosting v13.6.0
interface ContainerResource {
// ... omitted for brevity
withProcessCommand(
commandName: string,
displayName: string,
options: ProcessCommandExportOptions): IResource;
}

Signature

methodwithProcessCommandbuilder
Adds a command to the resource that starts a local process when invoked.
withProcessCommand(
commandName: string,
displayName: string,
options: ProcessCommandExportOptions): IResource
commandNamestring
displayNamestring
optionsProcessCommandExportOptions
IResource

Applies to

This method applies to the following types: