# cli

URL: /milo-cli/api/milo/cli/
Section: milo
Description: CLI entry point — milo dev, milo replay.

---

> For a complete page index, fetch /milo-cli/llms.txt.

Open LLM text
(/milo-cli/api/milo/cli/index.txt)

Share with AI

Ask Claude
(https://claude.ai/new?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fmilo-cli%2Fapi%2Fmilo%2Fcli%2Findex.txt)

Ask ChatGPT
(https://chatgpt.com/?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fmilo-cli%2Fapi%2Fmilo%2Fcli%2Findex.txt)

Ask Gemini
(https://gemini.google.com/app?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fmilo-cli%2Fapi%2Fmilo%2Fcli%2Findex.txt)

Ask Copilot
(https://copilot.microsoft.com/?q=Please%20help%20me%20understand%20this%20documentation%3A%20%2Fmilo-cli%2Fapi%2Fmilo%2Fcli%2Findex.txt)

Module

#
`cli`

CLI entry point — milo dev, milo replay.

8Functions

## Functions

`_load_app`

1

▼

Load an App instance from a module:attribute path like 'myapp:app'.

`def _load_app(app_path: str)`

##### Parameters

Name
Type
Description

`app_path`
`str`

`_cmd_dev`

1

`None`

▼

Run the dev server with hot-reload.

`def _cmd_dev(args: argparse.Namespace) -> None`

##### Parameters

Name
Type
Description

`args`
`argparse.Namespace`

`_cmd_verify`

1

`None`

▼

Run diagnostic checks against an agent-built milo CLI.

`def _cmd_verify(args: argparse.Namespace) -> None`

##### Parameters

Name
Type
Description

`args`
`argparse.Namespace`

`_cmd_new`

1

`None`

▼

Scaffold a new milo CLI project.

`def _cmd_new(args: argparse.Namespace) -> None`

##### Parameters

Name
Type
Description

`args`
`argparse.Namespace`

`_cmd_components`

1

`None`

▼

List bundled and user-defined template components.

`def _cmd_components(args: argparse.Namespace) -> None`

##### Parameters

Name
Type
Description

`args`
`argparse.Namespace`

`_cmd_replay`

1

`None`

▼

Replay a recorded session.

`def _cmd_replay(args: argparse.Namespace) -> None`

##### Parameters

Name
Type
Description

`args`
`argparse.Namespace`

`_preflight_python_version`

0

`None`

▼

Exit with an actionable message when running under an unsupported Python.

Runs…

`def _preflight_python_version() -> None`

Exit with an actionable message when running under an unsupported Python.

Runs before any milo module import that relies on 3.14+ features, so the
user sees a fix-it message instead of a`SyntaxError` or `ImportError`.

`main`

1

`None`

▼

Main CLI entry point.

`def main(argv: list[str] | None = None) -> None`

##### Parameters

Name
Type
Description

`argv`
`list[str] | None`

Default:`None`
