md-click-2
A fork. A command line tool for automatically generating .md files from click's CLI command.
What it is and what it does
MD-Click is a command-line tool that introspects click CLI projects and automatically generates markdown documentation files. It recursively walks through a command group, creating one markdown file per command and subcommand, named in formats like `parent-command.md` or `parent-command-subcommand.md`. The tool solves the problem of maintaining separate documentation for click-based CLI tools by automating the extraction of command names, options, help text, and structure directly from Python code.
You run it by pointing it at your click module and specifying an output directory, and it generates the full documentation tree. It requires click and build as runtime dependencies. The project is marked as Production/Stable but has been dormant since its single release on 2025-02-06.
Use it for:
- Generate initial markdown documentation for a new CLI project without manual command documentation
- Keep CLI documentation in sync with code changes by regenerating markdown files after modifying commands
- Create a reference guide showing all available commands, options, and help text in browsable format
- Automate documentation generation in CI/CD pipelines to ensure docs stay current with code
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Generates markdown documentation files automatically from click CLI command hierarchies, creating one markdown file per command and subcommand.
Yes, if you maintain a click CLI and want automated markdown documentation. Install friction is low and the license is permissive. However, the project is dormant with no maintenance activity since release—if you encounter issues or need support for new features, you may need to fork or patch it yourself.
Install
md-click-2 on PyPI
pip
pip install md-click-2uv
uv add md-click-2poetry
poetry add md-click-2Installing md-click-2
Before you install
Low install friction with only 2 runtime dependencies. Maintenance status is dormant—554 days since release with no recorded activity.
License in practice
BSD 3-Clause License permits modification and redistribution with attribution; no restrictions on commercial use or derivative works.
Quickstart
pip install md-click-2
mdclick dumps --baseModule=app.cli --baseCommand=main --docPath=./docs/commands
Requires Python >=3.8 and a click CLI module to introspect; the tool is run as a command-line utility, not imported as a library.
Verify before relying
- Whether the tool correctly handles complex nested command hierarchies and all option types
- Performance characteristics when processing large CLI projects with many commands
- Whether generated markdown formatting matches common documentation standards
- Current state of the repository and whether it accepts contributions or pull requests
Package facts
| License | BSD 3-Clause License Copyright (c) 2021, Rivery All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — click, build |
| Maintenance | dormant — 554 days since the last release |
| First released | |
| Downloads | 95,098/month — #13,291 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: md_click_2-0.0.1-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
mkdocs-clickGenerates API documentation for Click…
permissive · top 5,000 on PyPI
click-default-groupExtends Click's Group class to invoke a default…
permissive · top 5,000 on PyPI
notion2mdExports Notion pages and blocks to Markdown…
permissive · top 15,000 on PyPI
jsonschema2mdConverts JSON Schema files to human-readable…
permissive · top 5,000 on PyPI
md2pdfConverts Markdown files to PDF with custom CSS…
permissive · top 15,000 on PyPI
pytest-mdGenerates Markdown test reports from pytest…
permissive · top 15,000 on PyPI
django-clickWraps the click command-line library to let you…
permissive · top 15,000 on PyPI
clickClick is a Python toolkit for building…
permissive · top 100 on PyPI
mkdocs-autorefsA MkDocs plugin that automatically creates…
permissive · top 5,000 on PyPI
click-help-colorsAdds color customization to Click command-line…
permissive · top 5,000 on PyPI