Copy as Markdown[View as Markdown](/docs/sdk/functions/getTeam.md)

***

# Function: getTeam()

> **getTeam**(`catalogDir`): (`id`) => `Promise`<`Team`>

Defined in: teams.ts:27

Returns a team from EventCatalog.

## Parameters[​](#parameters "Direct link to Parameters")

| Parameter    | Type     |
| ------------ | -------- |
| `catalogDir` | `string` |

## Returns[​](#returns "Direct link to Returns")

`Function`

### Parameters[​](#parameters-1 "Direct link to Parameters")

| Parameter | Type     |
| --------- | -------- |
| `id`      | `string` |

### Returns[​](#returns-1 "Direct link to Returns")

`Promise`<`Team`>

## Example[​](#example "Direct link to Example")

```
import utils from '@eventcatalog/utils';

const { getTeam } = utils('/path/to/eventcatalog');

// Gets the team with the given id
const team = await getTeam('eventcatalog-core-team');
```
