Bare-bones CLI for your markdownlm knowledge base.
cd cli
pip install -e .Requires Python 3.8+ and requests.
# 1. Save your API key (from markdownlm dashboard → Settings)
mdlm configure
# 2. Clone your knowledge base into ./knowledge/
mdlm clone
# 3. Edit any .md file in ./knowledge/
# 4. See what changed
mdlm status
# 5. Push changes back
mdlm push --message "update auth docs"| Command | Description |
|---|---|
mdlm configure |
Save API key to ~/.config/mdlm/config (mode 0600) |
mdlm clone [--category CATEGORY] |
Download all docs → ./knowledge/ |
mdlm pull |
Refresh docs from server (overwrites local) |
mdlm status |
Show new / modified / deleted files |
mdlm push [--message MSG] [--category CATEGORY] [--delete] |
Upload local changes |
- Your API key is stored in
~/.config/mdlm/configwith permissions0600(owner read/write only). - Set
MDLM_API_KEYenv var to override without touching the config file. - Keys are never echoed to the terminal (
getpassis used duringconfigure). - HTTPS is enforced;
http://URLs are rejected at startup. - Conflict detection:
pushchecks the remote version before overwriting — runmdlm pullif there's a conflict. --deleteflag is required to delete remote docs; omitting it is the safe default.