#CLI reference
The command line interface is the most complete way to use Make Markdown Library.
#Command overview
make-markdown-library make Create a new library.
make-markdown-library add Append new sources to an existing library.
make-markdown-library list List source sections in a library.
make-markdown-library remove Remove source sections by text match.
make-markdown-library check Inspect a library and report source counts.
make-markdown-library rebuild Rebuild from a JSON index.
make-markdown-library doctor Check optional dependencies and tools.
make-markdown-library setup Install optional dependency groups.
make-markdown-library gui Open the graphical interface.#make
Create a Markdown library from a folder, file, or ZIP archive.
make-markdown-library make [source] [destination] [options]Defaults:
source: sources/
output: markdown-library.mdPath examples:
Use the defaults, sources/ and markdown-library.md:
make-markdown-library makeSet the source folder:
make-markdown-library make sourcesWrite into a destination folder:
make-markdown-library make sources out/Write to an exact destination file:
make-markdown-library make sources out/library.mdUse the explicit output option:
make-markdown-library make sources -o out/library.mdDo not provide both a destination positional path and --output; the CLI rejects that.
#Make options
-o, --output PATH Output library file.
-p, --purpose TEXT Purpose text written into the library header.
--description TEXT Library-level description written into front matter.
--category TEXT Library-level category written into front matter.
--allow-duplicates Include duplicate content instead of skipping it.
--individual-files Write one Markdown file per included source.
--individual-dir PATH Directory for split Markdown outputs.
--converter MODE markitdown, liteparse, auto, or hybrid.
--md-policy POLICY include, import-libs, or skip.
--include-generated Allow generated manifests, indexes, and split files as inputs.
--index-format FORMAT json, yaml, both, or none.
--index-path PATH Custom JSON index path.
--verbose Print per-file routing and skip decisions.
--quiet Print only errors and essential final paths.
--summary-json Print a compact machine-readable build summary.#Safety options
--backup-existing Back up existing outputs before replacing them.
--overwrite Replace existing outputs without backups.
--clean-individual-dir Remove old generated split Markdown files first.
--overwrite-individual Allow split outputs to overwrite non-generated Markdown.
--allow-individual-in-source Allow --individual-dir to be exactly the source folder.By default, make refuses to overwrite existing library, manifest, and index outputs.
#LiteParse options
--liteparse-image-mode off|placeholder|markdown|base64
--liteparse-no-links
--liteparse-no-ocr
--liteparse-ocr-language eng
--liteparse-target-pages 1,2,5-8
--liteparse-dpi 150
--liteparse-max-pages 50
--liteparse-password PASSWORD
--liteparse-complexity-checkThese options are recorded in the JSON/YAML index when LiteParse is used.
#add
Append sources to an existing library.
make-markdown-library add library.md new-files/Default behaviour:
- reads existing source fingerprints from
library.md; - skips new sources with matching fingerprints;
- appends genuinely new sections;
- backs up the existing library before modifying it.
Options:
--allow-duplicates
--converter markitdown|liteparse|auto|hybrid
--md-policy include|import-libs|skip
--no-backup-existingadd appends; it does not replace old sections by path. For replacement, remove first or rebuild from an index.
#rebuild
Rebuild from an existing JSON index.
make-markdown-library rebuild markdown-library.index.jsonPreview without writing:
make-markdown-library rebuild markdown-library.index.json --dry-runBy default, rebuild backs up existing outputs before replacing them. Use --no-backup-existing --overwrite only when replacement without backup is intentional.
#doctor
Check the local environment:
make-markdown-library doctorIt reports Python version, MarkItDown availability, LiteParse Python package availability, the optional lit CLI, YAML support, GUI/Tkinter availability, LibreOffice, ImageMagick, and OCR-related tooling where detectable. On Windows, ImageMagick is detected with magick, not Windows convert.exe.
#setup
Install LiteParse support:
make-markdown-library setup liteparseInstall YAML support:
make-markdown-library setup yamlInstall all converter extras:
make-markdown-library setup all-convertersYou normally choose the one dependency group you need. Interactive setup explains what will be installed before running pip. Non-interactive use should pass the tool's confirmation option where available.