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

***

# Function: addSystemToDomain()

> **addSystemToDomain**(`directory`): (`id`, `system`, `version`?) => `Promise`<`void`>

Defined in: domains.ts:478

Add a system to a domain by its id. Optionally specify a version to add the system to a specific version of the domain.

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

| Parameter   | Type     |
| ----------- | -------- |
| `directory` | `string` |

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

`Function`

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

| Parameter         | Type                                     |
| ----------------- | ---------------------------------------- |
| `id`              | `string`                                 |
| `system`          | { `id`: `string`; `version`: `string`; } |
| `system.id`       | `string`                                 |
| `system.version`? | `string`                                 |
| `version`?        | `string`                                 |

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

`Promise`<`void`>
