Skip to content

tdxAI-Native CLI for Treasure Data

Enabling Marketing as Code with Modern CLI designed for humans and AI

tdx

Installation

bash
npm install -g @treasuredata/tdx

For the best experience with tdx's visual features (emojis, colors, interactive selectors), use a modern terminal:

macOS:

  • iTerm2 - Feature-rich with excellent emoji support
  • Ghostty - Fast, modern, GPU-accelerated

Windows:

  • WSL2 - Recommended for best compatibility with tdx and Claude Code
  • PowerShell - Built-in, works but WSL2 is preferred

Linux:

  • Most modern terminals work great out of the box

Quick Start

bash
# Set up authentication
tdx auth setup

# List databases
tdx databases

# Run a query
tdx query "SELECT * FROM mydb.users LIMIT 10"

# Chat with AI
tdx chat "Show me customer revenue trends"

# Launch Claude Code with TD LLM
tdx claude