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

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

# Command.IsEnabled

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

## IsEnabled

Gets / sets if command is enabled or not.

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
bool IsEnabled {get; set;}
```

Python:

```python
command.IsEnabled: bool
```

### Returns

`bool` — 

### Examples

C#:

```csharp
foreach (var command in Commands)
    command.IsEnabled = false;
```

Python:

```python
for command in api.Commands:
    command.IsEnabled = False
```

