Skip to content
Docs Try Aspire

CommandSpec Properties

Class Properties 3 members
Specifies a command to execute.
Args Section titled Args string[]
Gets the arguments for the command. Supports placeholders: {appHostFile}, {appHostDir}, {args}
public string[] Args { get; init; }
Gets the command to execute (e.g., "npm", "npx", "python").
public string Command { get; init; }
EnvironmentVariables Section titled EnvironmentVariables nullable Dictionary<string, string>
Gets the environment variables to set when executing the command. These are merged with any environment variables provided by the caller.
public Dictionary<string, string>? EnvironmentVariables { get; init; }