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

***

# Function: getTeams()

> **getTeams**(`catalogDir`): (`options`?) => `Promise`<`Team`\[]>

Defined in: teams.ts:58

Returns all teams 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 |
| ---------- | ---- |
| `options`? | {}   |

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

`Promise`<`Team`\[]>

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

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

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

// Gets all teams from the catalog
const channels = await getTeams();
```
