---
id: "P:cAlgo.API.Command.Type"
kind: "property"
type: "T:cAlgo.API.Command"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Commands/Command/Type/"
---

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

# Command.Type

Member of [Command](https://help.ctrader.com/ctrader-algo/references/Plugin/Commands/Command/index.md).

## Type

Gets command type.

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.

C#:

```csharp
CommandType Type {get;}
```

Python:

```python
command.Type: CommandType
```

### Returns

`CommandType` — 

### Examples

C#:

```csharp
foreach (var command in Commands)
    Print("Command {0} type: {1}", command.Id, command.Type);
```

Python:

```python
for command in api.Commands:
    api.Print(f"Command {command.Id} type: {command.Type}")
```

