Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithProcessCommand

Method
📦 Aspire.Hosting v17.0.0
func (Resource) WithProcessCommand(
commandName string,
displayName string,
options *ProcessCommandExportOptions,
) Resource

Signature

methodWithProcessCommandbuilder
Adds a command to the resource that starts a local process when invoked.
WithProcessCommand(
commandName string,
displayName string,
options *ProcessCommandExportOptions,
) Resource
commandNamestring
displayNamestring
options*ProcessCommandExportOptions
Resource

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: