# ExecuteCommandContext

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Version: `13.4.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

Context for {@ats-ref method:ResourceCommandAnnotation.ExecuteCommand}.

## Definition

```typescript
interface ExecuteCommandContext {
  readonly arguments: InteractionInputCollection;
  readonly cancellationToken: cancellationToken;
  readonly logger: ILogger;
  readonly resourceName: string;
}
```

## Properties

- `arguments`: [InteractionInputCollection](/reference/api/typescript/aspire.hosting/interactioninputcollection.md) `get` -- Gets the invocation arguments supplied by the client when the command is executed.
- `cancellationToken`: `cancellationToken` `get` -- The cancellation token.
- `logger`: `ILogger` `get` -- The logger for the resource.
- `resourceName`: `string` `get` -- The resource name.
