tdx
AI-Native CLI for Treasure Data
Enabling Marketing as Code with Modern CLI designed for humans and AI
Marketing as Code
Manage segments, workflows, and journeys as version-controlled YAML with AI-Native Marketing Book.
Claude Code Integration
Launch Claude Code with TD LLM API backend using tdx claude for AI-powered development
Multiple Profile Support
Manage multiple environments with profile-based authentication for different accounts and regions
Modern Distribution
Install via npx or npm without prior setup. Zero configuration to get started
npm install -g @treasuredata/tdxFor the best experience with tdx's visual features (emojis, colors, interactive selectors), use a modern terminal:
macOS:
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
# 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