Small CLI tool for tracking meals, macros, targets, and water with a SQLite backend.
- Focus on fast, local input (no cloud account, no web UI)
- SQLite as a simple, robust data store
- Export for analysis (e.g. CSV/JSON)
- Compatible with the original Click version
Requirements: Python 3.11+ and uv.
cd /path/to/nutri
make setupuv run nutri today
uv run nutri log --meal lunch --desc "Bowl" --cal 650 --protein 45
uv run nutri water 300Default path:
- XDG Data Directory (app-specific)
Override via env var:
export NUTRI_DB_PATH=/path/to/nutri.db# Help
uv run nutri --help
# Log a meal
uv run nutri log --meal lunch --desc "Bowl" --cal 650 --protein 45
# Show today
uv run nutri today
# Status (coach)
uv run nutri status
# Set / show targets
uv run nutri target --cal 2200 --protein 160
uv run nutri target --show
# Log / show water
uv run nutri water 300
uv run nutri water --today
# Query: last 7 days
uv run nutri query --last 7d
# Info
uv run nutri info --format json
# Export
uv run nutri export --from 2026-01-01 --to 2026-01-31 --format csv -o jan.csvnutri loglog a mealnutri todaydaily overviewnutri statusstatus in "coach" stylenutri targetset/show targetsnutri waterlog/show waternutri querydata query (e.g. date range)nutri exportexport (CSV/JSON)
make build
./dist/nutri --helpRelease artifact incl. SHA256:
make packageThe formula lives in the tap repo at TAPS_DIR/homebrew-tap/Formula/nutri.rb.
Release process:
- Bump version in
pyproject.toml make package- Upload tar.gz +
.sha256 - Update formula URL + SHA256