Skip to content
DocsTry Aspire
DocsTry

cmd

Method
📦 Aspire.Hosting v13.4.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: