# CommandControl

Canonical page: https://www.adaptabletools.com/docs/reference/commandcontrol

A built-in Row command (opens the relevant Row Form).

```ts title="TypeScript"
export interface CommandControl<TData = any, CTX = ActionColumnContext<TData>> extends BaseControl<TData, CTX> 
```

###### Extends

[`BaseControl`](https://www.adaptabletools.com/docs/reference/basecontrol.md)`<TData, CTX>`

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [command](https://www.adaptabletools.com/docs/reference/commandcontrol.md#command) | [`ActionCommand`](https://www.adaptabletools.com/docs/reference/actioncommand.md) | The built-in command to run: `'create'`, `'clone'`, `'edit'` or `'delete'`. |
| [confirm](https://www.adaptabletools.com/docs/reference/commandcontrol.md#confirm) | [`ConfirmConfig`](https://www.adaptabletools.com/docs/reference/confirmconfig.md)`<CTX>` | Optional confirmation prompt shown before the command runs. |
| [type](https://www.adaptabletools.com/docs/reference/commandcontrol.md#type) | `'command'` | Discriminator. Set to `'command'`. |

## Property Details

### command

The built-in command to run: `'create'`, `'clone'`, `'edit'` or `'delete'`.

```ts title="TypeScript"
command: ActionCommand;
```

###### Property Value

[`ActionCommand`](https://www.adaptabletools.com/docs/reference/actioncommand.md)

### confirm

Optional confirmation prompt shown before the command runs.

```ts title="TypeScript"
confirm?: ConfirmConfig<CTX>;
```

###### Property Value

[`ConfirmConfig`](https://www.adaptabletools.com/docs/reference/confirmconfig.md)`<CTX>`

### type

Discriminator. Set to `'command'`.

```ts title="TypeScript"
type: 'command';
```

###### Property Value

`'command'`
