tdx Enabling [Marketing as Code](/treasure-code/book) with Modern CLI designed for humans and AI ## Features 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 ## Installation ```bash npm install -g @treasuredata/tdx ``` ## Recommended Terminals For the best experience with tdx's visual features (emojis, colors, interactive selectors), use a modern terminal: **macOS:** - [iTerm2](https://iterm2.com/) - Feature-rich with excellent emoji support - [Ghostty](https://ghostty.org/) - Fast, modern, GPU-accelerated **Windows:** - [WSL2](/treasure-code/guide/installation#windows-wsl2-recommended) - **Recommended** for best compatibility with tdx and Claude Code - [PowerShell](https://learn.microsoft.com/en-us/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 ```