CLI Reference

Main Command

kodo [OPTIONS]

Options

OptionShortDescriptionDefault
--config-cPath to config file~/.config/kodo/config.json
--repo-rRepository pathCurrent directory
--days-dNumber of days to analyze7
--output-oOutput format (tui/json/csv)tui
--period-pAggregation period (daily/weekly/monthly/yearly)daily
--branch-bBranch to analyzeDefault branch
--extFile extensions to include (comma-separated)All files
--include-mergesInclude merge commitsfalse
--single-metricShow single metric in TUIfalse (split view)
--repo-nameFilter repositories by name (comma-separated)All repos

Subcommands

kodo add <path>

Add a repository to the configuration.

OptionShortDescriptionDefault
<path>Path to the repository (use . for current directory)Required
--name-nDisplay name for the repositoryDirectory name
--branch-bDefault branch to analyzeNone

Examples:

kodo add .
kodo add . --name my-project
kodo add /path/to/repo --name myrepo --branch develop

kodo remove <identifier>

Remove a repository from the configuration.

OptionShortDescriptionDefault
<identifier>Repository path or name to removeRequired

Examples:

kodo remove .
kodo remove my-project
kodo remove /path/to/repo

kodo list

List registered repositories.

OptionShortDescriptionDefault
--jsonOutput in JSON formatfalse (table format)

Examples:

kodo list
kodo list --json

Environment Variables

VariableDescription
KODO_CONFIGPath to config file