# ExecutableResource.WithExecutableCommand

- Module: [Aspire.Hosting](/reference/api/go/aspire.hosting.md)
- Defined on: [ExecutableResource](/reference/api/go/aspire.hosting/executableresource.md)
- Version: `17.0.0`
- Kind: `method`

Sets the command for the executable resource.

## Definition

```go
type ExecutableResource interface {
    // ... omitted for brevity
    WithExecutableCommand(command string) ExecutableResource
}
```

## Signature

```go
WithExecutableCommand(command string) ExecutableResource
```

## Parameters

- `command` (`string`) -- Command.

## Returns

[`ExecutableResource`](/reference/api/go/aspire.hosting/executableresource.md) -- The resource builder.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [ExecutableResource](/reference/api/go/aspire.hosting/executableresource.md) -- `handle`
