---
id: "T:cAlgo.API.CommandType"
kind: "enum"
namespace: "cAlgo.API"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Commands/CommandType/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# CommandType (enum)

Represents the predefined types of plugin commands.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

## Definition

```csharp
public enum CommandType
```

## Examples

C#:

```csharp
var command = Commands.Add(CommandType.ChartContainerToolbar, args => Print("Toolbar command executed"));
Print("Command type: {0}", command.Type);
```

Python:

```python
from System import Action
command = api.Commands.Add(CommandType.ChartContainerToolbar, Action[CommandArgs](lambda args: api.Print("Toolbar command executed")))
api.Print(f"Command type: {command.Type}")
```

## Values

- `CommandType.ChartContainerToolbar` — A command for chart group container toolbar.

