> For the complete documentation index, see [llms.txt](https://lyokoapi.gitbook.io/lyokoapi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lyokoapi.gitbook.io/lyokoapi/v2/lyokoapi/events/apievents/commandinputevent.md).

# Command Input Event

This event is called whenever a command is executed in the game.

{% hint style="success" %}
The commands can be prefixed by "api.", but LAPI automatically removes it before passing it to the plugins.
{% endhint %}

{% hint style="danger" %}
**As usual, only application devs should call this event, DO NOT call this from your plugin**
{% endhint %}

## Calling

This event takes a String, being the complete command (either with or without the "api." prefix)

```csharp
string myCommand = "api.plugins.list";
CommandInputEvent.Call(myCommand);
```

## CommandListener

It's highly recommend for plugin developers to use the [CommandListener](/lyokoapi/v2/lyokoapi/commands/commandlistener.md) to work with commands
