Skip to content

Commands Overview

bash
tdx <command> [options] [arguments]

Command Categories

Data Commands

CommandAliasesDescription
tdx databasedbDatabase management commands
tdx table-Table management commands
tdx show [table]-Show table contents (SELECT * with limit)
tdx describe [table]descDescribe table schema
tdx query-Execute SQL queries with streaming results
tdx job-Manage query jobs
tdx workflowwfManage Digdag workflows

CDP Commands

CommandAliasesDescription
tdx segmentsgManage CDP segments and audiences
tdx parent-segmentpsManage parent segment configurations
tdx journey-Manage CDP Journey Orchestration
tdx activations <segment>-List activations for a segment
tdx engage-Manage Engage campaigns, email templates, and workspaces
tdx connectionconnectionsData connection management (for activations/exports)

AI Commands

CommandDescription
tdx agentFile-based agent sync (pull/push YAML/Markdown)
tdx chatQuick AI chat interaction
tdx llmManage LLM projects, agents, and chat sessions
tdx claudeLaunch Claude Code with TD LLM backend
tdx mcpStart MCP server for AI coding assistants

Context Commands

CommandDescription
tdx use [resource] [value]Set session-level context (database, parent_segment, llm_project, profile, engage_workspace)
tdx profilesList all available profiles
tdx authAuthentication management
tdx userUser management commands

Utility Commands

CommandAliasesDescription
tdx api [endpoint]-Make raw HTTP requests to TD APIs

Plural Forms

Use plural forms as aliases for list commands: tdx databases, tdx tables, tdx segments, tdx jobs, etc.

Global Options

Available for all commands:

Output Format Options

OptionDescription
--format <format>Output format (table, json, jsonl, tsv)
--tableOutput in table format (horizontal layout)
--jsonOutput in JSON format
--jsonlOutput in JSON Lines format
--tsvOutput in TSV format
--output <file>Save output to file
--limit <rows>Maximum rows to display (default varies by command)
--colorForce ANSI color output
--no-colorDisable ANSI color output

Profile and Site Options

OptionDescriptionDefault
-p, --profile <name>Profile to use (overrides active profile)-
--site <site>TD site/region (us01, jp01, eu01, ap02; aliases: us, jp, aws)us01

Context Override Options

OptionDescription
-d, --database <name>Database to use (overrides context)
--in <name>Alias for --database (natural language style)
--parent-segment <name>Parent segment to use (overrides context)
--llm-project <name>LLM project to use (overrides context)
--session <id>Session ID (defaults to parent PID)

Logging and Debugging

OptionDescription
-v, --verboseEnable verbose logging
--debugEnable debug logging (shows HTTP requests/responses)
--traceEnable trace logging (ultra-verbose)

Directory Option

OptionDescription
-C, --directory <path>Change to directory before executing command

This option is useful for running tdx against different project directories without changing your shell's current directory. Similar to git -C.

bash
# Run tdx in a different project directory
tdx -C /path/to/project databases

# Use project config from another directory
tdx -C ../other-project segment list

Other Options

OptionDescriptionDefault
--timeout <seconds>Set operation timeout30
--dry-runPreview operation without executing-
-y, --yesSkip confirmation prompts-