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

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

# Command.Id

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

## Id

Gets command unique Id.

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
Guid Id {get;}
```

Python:

```python
command.Id: Guid
```

### Returns

`Guid` — 

### Examples

C#:

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

Python:

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

