Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

withRequiredCommand

Method
📦 Aspire.Hosting v13.5.3
interface ContainerResource {
// ... omitted for brevity
withRequiredCommand(
command: string,
helpLink?: string): IResource;
}

Signature

methodwithRequiredCommandbuilder
Declares that a resource requires a specific command/executable to be available on the local machine PATH before it can start.
withRequiredCommand(
command: string,
helpLink?: string): IResource
commandstring
helpLinkstringoptional
IResource

Applies to

This method applies to the following types: