A lightweight CLI wrapper for Microsoft's markitdown library. Convert any webpage into a clean Markdown file directly from your terminal.
The recommended way to install markitdown-cli is using pipx:
pipx install markitdown-cliAlternatively, you can install it with pip:
pip install markitdown-cliThe primary use case is to provide a URL to the tool. markitdown-cli will then download the page, convert it to Markdown, and save it as a file in your current directory.
markitdown-cli https://example.com/articleThis will create a file named article.md in the current directory.
The tool will suggest a title for the Markdown file based on the URL. You can either accept the suggestion by pressing Enter, or you can type a custom title.
$ markitdown-cli https://collabfund.com/blog/the-dumber-side-of-smart-people/
Suggested title [the-dumber-side-of-smart-people]:
Wrote: the-dumber-side-of-smart-people.md
You can use the -o or --outdir option to specify a different directory to save the Markdown file.
markitdown-cli https://example.com/article -o ./my-articlesThis will create article.md inside the my-articles directory.
This project is licensed under the MIT License - see the LICENSE file for details.