Skip to content

kunji ask

Ask an AI model one question from the terminal, with pipes and file attachments.

Terminal window
# Ask one question
kunji ask "What is a closure in JavaScript?"
# Ask about a file
kunji ask -f app.py "What does this do?"
# Send command output
npm test 2>&1 | kunji ask "Why does this fail?"
# Plain output for scripts
kunji ask --raw "Write a haiku about git" > poem.txt

One question, one answer. Works with pipes: npm test 2>&1 | kunji ask “fix this”

Terminal window
kunji ask [prompt] [options]

Arguments

Name Required Description
prompt no Your question. Piped input is added below it.

Options

Option Description
--model, -m provider:model
--system, -s System prompt.
--file, -f Attach a text file (repeat for more).
--raw Plain text output (default when piped).

Run kunji ask --help in your terminal to see this in place.