# IDistributedApplicationPipeline.addStep

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Defined on: [IDistributedApplicationPipeline](/reference/api/typescript/aspire.hosting/idistributedapplicationpipeline.md)
- Version: `13.3.0`
- Kind: `method`

Adds a pipeline step to the application

## Definition

```typescript
interface IDistributedApplicationPipeline {
  // ... omitted for brevity
  addStep(stepName: string, callback: (arg: PipelineStepContext) => Promise<void>, dependsOn?: string[], requiredBy?: string[]): void;
}
```

## Signature

```typescript
addStep(stepName: string, callback: (arg: PipelineStepContext) => Promise<void>, dependsOn?: string[], requiredBy?: string[]): void
```

## Parameters

- `stepName` (`string`)
- `callback` (`(arg: PipelineStepContext) => Promise<void>`)
- `dependsOn` (`string[]`) `optional`
- `requiredBy` (`string[]`) `optional`

## Defined on

- [IDistributedApplicationPipeline](/reference/api/typescript/aspire.hosting/idistributedapplicationpipeline.md) -- `interface`
