Can be used to convert ebooks between common formats, e.g., pdf, epub and mobi.

# To convert an ebook into another format:
ebook-convert <source> <destination>

# To convert Markdown or HTML to ebook with TOC, title and author:
ebook-convert <source> <destination> --level1-toc="//h:h1" --level2-toc="//h:h2" --level3-toc="//h:h3" --title=<title> --authors=<author>