# AddCommandHandler(string,Action)

Method in [Actions](https://docs.yarnspinner.dev/2.3/api/csharp/yarn.unity/yarn.unity.actions)

## Summary

```csharp
public void AddCommandHandler(string commandName, Action handler);
```

## Parameters

| Name                    | Description |
| ----------------------- | ----------- |
| `string` commandName    |             |
| `System.Action` handler |             |
