---
title: Notebook README CLI (mdhtml-readme)
description: Generate `README.md` from a notebook (`mdhtml-readme`) without Quarto.
order: 10
---
Uses the notebook's stored outputs as found (nothing executes), drops `#| hide` cells, strips leading `#|` directive lines, consumes leading raw YAML frontmatter, and extracts embedded images into a `{stem}_files/` directory. Prepends an autogenerated warning comment unless `head` replaces or suppresses it.

## main

```python
def main(
    file:str=None, # Notebook to render (default: the configured `readme_nb` under `nbs_path`)
    out:str=None, # Output path (default: README.md at the project root)
    head:str=None, # Text placed above the output (default: a do-not-edit comment; pass '' for none)
):
```

*Create README.md, and a `{stem}_files/` directory of extracted images, from a notebook's stored outputs*
