# ProcessCommandSpec

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/ApplicationModel/ProcessCommandSpec.cs)

Describes a local process that is started when a process-backed resource command executes.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class ProcessCommandSpec
{
    // ...
}
```

## Constructors

- [ProcessCommandSpec(string)](/reference/api/csharp/aspire.hosting/processcommandspec/constructors.md#constructor-string) -- Describes a local process that is started when a process-backed resource command executes.

## Properties

- [Arguments](/reference/api/csharp/aspire.hosting/processcommandspec/properties.md#arguments) : `IReadOnlyList<string>` `get; init` -- Gets or sets the command-line arguments for the process.
- [EnvironmentVariables](/reference/api/csharp/aspire.hosting/processcommandspec/properties.md#environmentvariables) : `IDictionary<string, string>` `get; init` -- Gets or sets the environment variables to set for the process.
- [ExecutablePath](/reference/api/csharp/aspire.hosting/processcommandspec/properties.md#executablepath) : `string` `get` -- Gets the executable path or command name to start.
- [InheritEnvironmentVariables](/reference/api/csharp/aspire.hosting/processcommandspec/properties.md#inheritenvironmentvariables) : `bool` `get; init` -- Gets or sets a value indicating whether the process should inherit the current environment variables.
- [KillEntireProcessTree](/reference/api/csharp/aspire.hosting/processcommandspec/properties.md#killentireprocesstree) : `bool` `get; init` -- Gets or sets a value indicating whether the entire process tree should be killed when the process is disposed.
- [StandardInputContent](/reference/api/csharp/aspire.hosting/processcommandspec/properties.md#standardinputcontent) : `string?` `get; init` -- Gets or sets standard input content to write to the process after it starts.
- [WorkingDirectory](/reference/api/csharp/aspire.hosting/processcommandspec/properties.md#workingdirectory) : `string?` `get; init` -- Gets or sets the working directory for the process.
