---
title: "vuer.cli.main"
section: "Python API"
order: 8
description: "Python API reference for vuer.cli.main"
---

# vuer.cli.main

Dynamic CLI with plugin discovery.

This module discovers command classes from entry points and builds
a params-proto CLI with all available commands as subcommands.

## discover_commands

```python
def discover_commands() -> list[type]
```

[Source](https://github.com/vuer-ai/vuer-docs/blob/main/src/vuer/cli/main.py#L14)

Discover command classes from 'vuer.cli' entry points.

Returns:
    List of command classes (dataclasses with __call__ method)

## make_cli

```python
def make_cli()
```

[Source](https://github.com/vuer-ai/vuer-docs/blob/main/src/vuer/cli/main.py#L39)

Build CLI dynamically from discovered commands.

Returns:
    A callable CLI function decorated with @proto.cli

## main

```python
def main() -> int
```

[Source](https://github.com/vuer-ai/vuer-docs/blob/main/src/vuer/cli/main.py#L117)

Entry point for the vuer CLI.
