Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

cmd

Method
📦 Aspire.Hosting v13.6.0
interface DockerfileStage {
// ... omitted for brevity
cmd(command: string[]): DockerfileStage;
}

Signature

methodcmd
Adds a CMD statement to a Dockerfile stage
cmd(command: string[]): DockerfileStage
commandstring[]
DockerfileStage

Applies to

This method applies to the following types: