CommandPurposeExample
codexInteractive REPLcodex
codex "..."Initial prompt for interactive REPLcodex "fix lint errors"
codex -q "..."Non-interactive “quiet mode”codex -q --json "explain utils.ts"
codex completion <bash|zsh|fish>Print shell completion scriptcodex completion bash

Key flags: --model/-m--approval-mode/-a--quiet/-q, and --notify.