Quick Start
Basic Usage
Navigate to any directory and run:
bash
viewmdThis starts a local server on port 8000. Open http://localhost:8000 in your browser to browse the directory.
Custom Port
bash
viewmd 3000Show All Files
By default, viewmd only shows markdown files and directories containing markdown. To show all files:
bash
viewmd -aAuto-display README
Automatically render a directory's README.md when you navigate to it:
bash
viewmd --auto-readmeWatch Mode
Auto-reload the browser when files change — useful for live editing:
bash
viewmd --watchCombine Flags
bash
viewmd -a -w --auto-readme 3000This shows all files, watches for changes, auto-displays READMEs, and serves on port 3000.