The ghst CLI might be a good place to start, if you have .md files:
ghst
Somebody also shared this tool they’ve build, which looks like it has a few more options, though it’s pretty new: