CLI Mode
Direct prompt processing with Mix's command-line interface for immediate AI assistance.
CLI Mode
Mix's CLI mode processes prompts directly from the command line, providing immediate AI responses without starting a server or interactive session.
Quick Start
mix -p "Explain the use of context in Go"
Core Options
mix --prompt "your question here" [options]
Flag | Short | Description | Default |
---|---|---|---|
--prompt | -p | Your prompt/question for the AI | Required |
--output-format | -f | Output format: text or json | text |
--quiet | -q | Hide progress spinner | false |
--debug | -d | Enable debug logging | false |
--cwd | -c | Set working directory | Current directory |
Tips
- Use
-q
flag in scripts to avoid spinner interference - Set
--cwd
to provide project context for better responses - JSON format is ideal for automation and integration workflows
- Debug mode helps troubleshoot configuration issues
CLI mode is perfect for one-off questions, automation scripts, and integration with existing development workflows.