CLI reference¶
Generated from the ezmd typer app by tools/gen_cli_doc.py; do not edit by hand.
In a source checkout run commands as uv run ezmd ....
ezmd¶
Usage: ezmd [OPTIONS] COMMAND [ARGS]...
Convert anything to LLM-ready Markdown.
Options:
-V, --version Print the version and exit.
--install-completion Install completion for the current shell.
--show-completion Show completion for the current shell, to copy it or customize the
installation.
-h, --help Show this message and exit.
Commands:
convert Convert one input to Markdown (stdout, or a file with --out).
batch Convert many files; unchanged inputs are skipped on re-runs.
doctor Check the environment: Python, extras, ffmpeg, pandoc, models, cache, Redis.
capabilities List converters (loaded or unavailable, with the reason).
detect Show the detected content type of a file (always JSON).
version Print the version, commit, and build date.
serve Run the HTTP API and web UI in-process (inline queue without Redis).
shadow-run Convert inputs with every engine that handles them and compare the outputs.
ezmd convert¶
Usage: ezmd convert [OPTIONS] SOURCE
Convert one input to Markdown (stdout, or a file with --out).
Arguments:
SOURCE File path, http(s) URL, or '-' for stdin. [required]
Options:
-p, --profile TEXT full | compact | rag | agent [default: auto]
-o, --out PATH Output file, or directory for <title>.md.
-f, --format TEXT md | txt | json [default: md]
--sidecar / --no-sidecar Write <name>.ezmd.json beside --out.
--image-dir PATH Extract images to PATH/images/.
--engine TEXT Engine as family=name, e.g. pdf=docling.
--converter TEXT Force a converter id.
--lang TEXT Language hint(s), e.g. en or en,de.
--remote TEXT Convert on this ezmd instance.
--opt TEXT key=value converter or profile option.
--json One JSON object on stdout.
-q, --quiet No progress or warnings on stderr.
-h, --help Show this message and exit.
ezmd batch¶
Usage: ezmd batch [OPTIONS] INPUTS
Convert many files; unchanged inputs are skipped on re-runs.
Arguments:
INPUTS Directory or glob (quote globs). [required]
Options:
-o, --out PATH Output directory (mirrors the input tree).
-r, --recursive Descend into subdirectories.
-w, --workers INTEGER RANGE Worker processes. [x>=1]
-p, --profile TEXT full | compact | rag | agent
-f, --format TEXT md | txt | json
--continue-on-error Keep going after a failure.
--manifest PATH [default: <out>/manifest.jsonl]
--sidecar / --no-sidecar Write sidecars.
--image-dir PATH Extract each input's images to PATH/<its path>/images/.
--opt TEXT key=value converter or profile option.
--json Summary JSON on stdout.
-q, --quiet No progress or table on stderr.
-h, --help Show this message and exit.
ezmd doctor¶
Usage: ezmd doctor [OPTIONS]
Check the environment: Python, extras, ffmpeg, pandoc, models, cache, Redis.
Options:
--json Checks as JSON on stdout.
-q, --quiet Print only problems.
-h, --help Show this message and exit.
ezmd capabilities¶
Usage: ezmd capabilities [OPTIONS]
List converters (loaded or unavailable, with the reason).
Options:
--remote TEXT Ask this ezmd instance instead.
--json As JSON.
-h, --help Show this message and exit.
ezmd detect¶
Usage: ezmd detect [OPTIONS] PATH
Show the detected content type of a file (always JSON).
Arguments:
PATH File to inspect. [required]
Options:
-h, --help Show this message and exit.
ezmd version¶
Usage: ezmd version [OPTIONS]
Print the version, commit, and build date.
Options:
--json As JSON.
-h, --help Show this message and exit.
ezmd serve¶
Usage: ezmd serve [OPTIONS]
Run the HTTP API and web UI in-process (inline queue without Redis).
Options:
--host TEXT Bind address. [default: 127.0.0.1]
--port INTEGER Port. [default: 8080]
--i-know-this-is-public Allow binding non-loopback.
-h, --help Show this message and exit.
ezmd shadow-run¶
Usage: ezmd shadow-run [OPTIONS] INPUTS...
Convert inputs with every engine that handles them and compare the outputs.
Arguments:
INPUTS... Files, directories, or globs (quote globs). [required]
Options:
-e, --engines TEXT Only these converters (comma-separated ids).
-p, --profile TEXT full | compact | rag | agent [default: full]
--timeout FLOAT Per-engine time limit in seconds. [default: 600.0]
--json One JSON object on stdout.
-h, --help Show this message and exit.
Exit codes¶
| Code | Meaning |
|---|---|
| 0 | Success. |
| 1 | Generic failure (the converter failed). |
| 2 | Bad arguments, missing file, or missing dependency: an optional extra the input needs (extra_required). |
| 3 | Partial success: a usable result with an error warning, or batch failures with --continue-on-error. |
| 4 | The fetch was blocked by platform policy (residential-only host or fetch required). |
| 5 | Input too large. |
| 6 | Unsupported input type (unsupported_media_type). |
| 130 | Interrupted. |
--opt key=value is repeatable. A ConvertOptions field name (such as max_pages or ocr) sets
that converter option, extra.<key> sets a family-specific converter option, and any other key is
a profile override (for example --opt chunk_tokens=600 or --opt tables.max_pipe_rows=100).
See Output format for the profile options.