# IResource.withRequiredCommand

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

Declares that a resource requires a specific command/executable to be available on the local machine PATH before it can start.

## Definition

```typescript
interface IResource {
  // ... omitted for brevity
  withRequiredCommand(
      command: string,
      helpLink?: string): IResource;
}
```

## Signature

```typescript
withRequiredCommand(
    command: string,
    helpLink?: string): IResource
```

## Parameters

- `command` (`string`)
- `helpLink` (`string`) `optional`

## Returns

[IResource](/reference/api/typescript/aspire.hosting/iresource.md) `builder`

## Defined on

- [IResource](/reference/api/typescript/aspire.hosting/iresource.md) -- `interface`
