---
title: "Reference: Mastra.getDeployer() | Core"
description: "Documentation for the `Mastra.getDeployer()` method in Mastra, which retrieves the configured deployer instance."
packages:
  - "@mastra/core"
---

# Mastra.getDeployer()

The `.getDeployer()` method is used to retrieve the deployer instance that has been configured in the Mastra instance.

## Usage example

```typescript
mastra.getDeployer();
```

## Parameters

This method does not accept any parameters.

## Returns

<PropertiesTable
  content={[
    {
      name: "deployer",
      type: "MastraDeployer | undefined",
      description:
        "The configured deployer instance, or undefined if no deployer has been configured.",
    },
  ]}
/>

## Related

- [Deployment overview](/docs/v1/deployment/overview)
- [Deployer reference](/reference/v1/deployer/)
