# execute_plugin_command

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/plugins/commands_cli/execute_plugin_command)

Execute a plugin management command.

## Signature

```python
execute_plugin_command(
    args: argparse.Namespace,
) -> str | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `args` | `argparse.Namespace` | Yes | Parsed argparse namespace. |

## Returns

`str | None`

Text output for slash-command callers, or `None` when output was written.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e4c1ffe9ee63d7854147de490ca27495ef157a7b/libs/code/deepagents_code/plugins/commands_cli.py#L101)