# Command Input Event

{% 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](https://lyokoapi.gitbook.io/lyokoapi/v2/lyokoapi/commands/commandlistener) to work with commands


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lyokoapi.gitbook.io/lyokoapi/v2/lyokoapi/events/apievents/commandinputevent.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
