Trifle CLI is a command-line interface for Trifle App and local SQLite metrics. It can query and push metrics via the Trifle API or a local SQLite database, and it ships an MCP server mode for AI agents.
- Download a release from GitHub and place
trifleon your PATH. - Or build locally (Go 1.22+):
go build -o trifle .Fetch series from the API:
trifle metrics get \
--key event::signup \
--from 2026-01-24T00:00:00Z \
--to 2026-01-25T00:00:00Z \
--granularity 1hUse local SQLite:
trifle metrics setup --driver sqlite --db ./stats.db
trifle metrics push --driver sqlite --db ./stats.db --key event::signup --values '{"count":1}'Learn more at https://docs.trifle.io/trifle-cli
