ollamark is a command-line client for Ollama with markdown support.
Install ollamark using your preferred package manager (bun
is recommended).
npm install -g https://github.com/knoopx/ollamark
Usage: ollamark run [options] <prompt...>
Execute a prompt
Options:
--html treat input as html
--json output in json
-m, --model <string> model name (partial match supported)
-s, --system <string> system prompt
-t, --temp <value> temperature
-n, --num-pred <value> number of predictions
-C, --ctx <value> context length
-r, --response only print response
-W, --print-width <chars> print width (default: "100")
-h, --help display help for command
# coding assistance
ollamark -m magicoder "how to loop a javascript array"
# parsing text
ollamark -m hermes "2x eggs, 1x chicken breast" --json -s "{ items: {name: string; quantity: number }[] }"
# git commit message
git diff | ollamark -t 0.3 -m hermes "one-line summary of the changes" -r