---
title: "ICommandFactory | Customer&#x27;s Canvas"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ICommandFactory/"
archived: false
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Customer's Canvas Hub"
    versions: ["cloud"]
    entity_id: "https://customerscanvas.com/products/hub#software-application"
  - product: "Design Atoms JS"
    versions: ["7.4"]
---

# ICommandFactory

**Applies to:** Customer's Canvas On-Premises; Customer's Canvas Hub cloud; Design Atoms JS 7.4

> API reference for the ICommandFactory module in @aurigma/design-atoms-text.

## Interfaces

### ICommandFactory

#### Methods

##### create()

```ts
create(type, initData?): ICommand;
```

Creates a command of the required type.

###### Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `type` | [`CommandType`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/CommandType.md#commandtype) | command type. |
| `initData?` | `any` | data required to initialize the command. |

###### Returns

[`ICommand`](https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-text/ICommand.md#icommand)
