OptionsOn grok itself
--single-p
Print the response to stdout and exit instead of opening the TUI. <single>
--prompt-file
Prompt from file (headless) <prompt_file>
--continue-c
Continue most recent session
--cwd
Working directory <cwd>
--output-format
Output format (headless) <output_format>
--permission-mode
Permission mode <permission_mode>
--always-approve
Auto-approve all tool executions
--max-turns
Maximum agent turns <max_turns>
--reasoning-effort--effort
Reasoning effort <reasoning_effort>
--rules
Appended to the system prompt. <rules>
--no-alt-screen
Run inline (no alternate screen)
--disable-web-search
Disable web search