Skip to main content
The MyTruv CLI is designed to be called by scripts and AI agents, not just humans. Every command returns structured JSON on stdout, keeps human output on stderr, and signals failures with meaningful exit codes.

Output contract

  • stdout carries data. JSON by default when piped, or CSV with --output csv.
  • stderr carries human-friendly output (colors, tables, warnings) and structured error JSON on failure - ignored by data parsers.
  • When run in a TTY, commands render a formatted table on stderr and stdout stays empty. When piped or redirected, stdout is raw JSON.
  • Force a specific format with --json (shorthand for --output json) or -o csv.

Exit codes


Error format

Errors are structured JSON on stderr (never on stdout, so they never pollute parseable output):

Examples


Gemini CLI extension

MyTruv CLI ships as a Gemini CLI extension, giving Gemini direct access to your financial data through MCP. Install and authenticate the mytruv CLI first (see Overview) so it is on your $PATH, then:

Next steps

CLI Overview

Install, commands, and quickstart

MyTruv MCP

Hosted MCP server (no install)