# ExecutableResource.withExecutableCommand

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

Sets the command for the executable resource.

## Definition

```typescript
interface ExecutableResource {
  // ... omitted for brevity
  withExecutableCommand(command: string): ExecutableResource;
}
```

## Signature

```typescript
withExecutableCommand(command: string): ExecutableResource
```

## Parameters

- `command` (`string`)

## Returns

[ExecutableResource](/reference/api/typescript/aspire.hosting/executableresource.md) `builder`

## Defined on

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