# otCliCommand


`#include <openthread/cli.h>`

Represents a user provided CLI command entry.

## Summary

| ### Public attributes ||
|---|---|
| `https://openthread.io/reference/struct/ot-cli-command#structot_cli_command_1aef06b64319887b0b79bde4bd3cf8d5aa)(void *aContext, uint8_t aArgsLength, char *aArgs[])` | `https://openthread.io/reference/group/api-error#group__api-error_1gabaaa90aaa35da8f9d394a227a23a6a49(*` Command handler function pointer. |
| `https://openthread.io/reference/struct/ot-cli-command#structot_cli_command_1a9703c8a0ea5d47eb94ffe0aa02979f2c` | `const char *` The command string. |

## Public attributes

### mCommand

```
otError(* otCliCommand::mCommand)(void *aContext, uint8_t aArgsLength, char *aArgs[])
```
Command handler function pointer.

### mName

```
const char * otCliCommand::mName
```
The command string.

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).