Command line tool to trigger compile?

It would be useful to be to be able to trigger compile with a specific setting from the command-line on MacOS.
I am backuping my Scrivener files in Git and this would allow me to trigger a Markdown compilation, that can be processed for exemple server-side to generate various other format using Pandoc.

I hope this helps,