The gr command-line reference, grouped by area:

Global flags

All commands accept:

FlagDescription
--config <path>Use a specific config file
--jsonOutput in JSON format
--agent-modeForce agent mode (auto-enables JSON output)

Agent mode is auto-detected inside a graith session or other AI agent environment (Claude Code, Cursor, Copilot, Amazon Q, OpenCode). GR_AGENT_MODE=0 disables it; GR_AGENT_MODE=1 forces it.