Watch Aspire live streamsDocsTry Aspire

withArgs

Method
📦 Aspire.Hosting v13.6.0
interface ContainerResource {
// ... omitted for brevity
withArgs(args: string[]): IResourceWithArgs;
}

Signature

methodwithArgsbuilder
Adds arguments to be passed to a resource that supports arguments when it is launched.
withArgs(args: string[]): IResourceWithArgs
argsstring[]The arguments to be passed to the resource when it is started.
IResourceWithArgs

Applies to

This method applies to the following types: