{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["platform-badges","admonition"]},"type":"markdown"},"seo":{"title":"Treasure AI Studio - TDX コマンド（サーバーサイド CLI）","description":"フル機能の tdx CLI が Studio のサーバーサイドサンドボックス内で動作します。AI チャットを離れることなく、データベースのクエリ、セグメントの管理、ジャーニーの検証、API レスポンスの確認が可能です。","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"tdx-コマンドサーバーサイド-cli","__idx":0},"children":["TDX コマンド（サーバーサイド CLI）"]},{"$$mdtype":"Tag","name":"PlatformBadges","attributes":{"platforms":["Web","Desktop"]},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ターミナルは不要です。フル機能の tdx CLI が Studio のサーバーサイドサンドボックス内で動作するため、チャットを離れることなく、ローカルで使い慣れたコマンドでデータベースのクエリ、セグメントの管理、設定の検証が行えます。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"注意"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["TDX コマンドは、お使いのローカルマシンではなく、隔離されたサンドボックス実行環境で実行されます。Treasure AI の認証情報はサーバーサイドで管理され、ブラウザには保存されません。ネットワークアクセスは Treasure AI API および認可済みエンドポイントに制限されています。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"目的","__idx":1},"children":["目的"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["AI を通じて tdx CLI コマンドを実行し、Treasure AI リソースを正確かつオンデマンドで制御します。これにより、AI の自律的なマルチステップワークフローを補完します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":2},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure AI Studio にサインイン済みであること（",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/getting-started"},"children":["はじめに"]},"）"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Web または Desktop のみ"]}," — TDX コマンドはモバイルでは利用できません"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"tdx-コマンドの実行","__idx":3},"children":["TDX コマンドの実行"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["AI に任意の tdx コマンドの実行を依頼してください。コマンドはサーバーサイドサンドボックスで実行され、出力はツールコール結果としてチャット内にインラインで表示されます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"ユーザー: tdx databases を実行して利用可能なものを表示してください\n\nAI: [サンドボックスで tdx databases を実行]\n    データベースが 12 件あります。最近更新されたものは以下のとおりです...\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"直接コマンドを使用する場面","__idx":4},"children":["直接コマンドを使用する場面"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["クイックルックアップ。"]}," AI に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx databases"]}," や ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx tables mydb"]}," の実行を依頼して、利用可能なデータを確認します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["精密な制御。"]}," 実行するコマンドが明確な場合は、AI に直接実行を指示します。推論フェーズをスキップして即座に実行されます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["検証。"]}," AI に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx sg validate segment.yaml"]}," や ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx journey validate journey.yaml"]}," の実行を依頼して、設定を検証します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["デバッグ。"]}," AI に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx api --type td /v3/job/list"]}," の実行を依頼して、生の API レスポンスを確認します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ai-にコマンドを選択させる場面","__idx":5},"children":["AI にコマンドを選択させる場面"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["「カスタマーデータベースを調査し、最も有用なテーブルを見つけて、高価値ユーザーのオーディエンスセグメントを構築する」といったマルチステップワークフローの場合は、AI にコマンドを任せてください。AI が適切な一連のコールをチェーンし、結果を解釈して作業を継続します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"利用可能な-tdx-コマンド","__idx":6},"children":["利用可能な TDX コマンド"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["フル機能の tdx CLI がサンドボックスで利用できます。よく使用されるコマンドグループを以下に示します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"データコマンド","__idx":7},"children":["データコマンド"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"コマンド"},"children":["コマンド"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"例"},"children":["例"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx databases"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["すべてのデータベースを一覧表示"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx databases"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx tables <db>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["データベース内のテーブルを一覧表示"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx tables mydb"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx describe <db.table>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["テーブルスキーマ（カラムと型）を表示"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx describe mydb.users"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx show <db.table>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["テーブルの内容をプレビュー（制限付き SELECT *）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx show mydb.users"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx query \"<sql>\""]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Trino SQL クエリを実行"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx query \"SELECT * FROM mydb.users LIMIT 10\""]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx job list"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["最近のクエリジョブを一覧表示"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx job list"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"cdp-コマンド","__idx":8},"children":["CDP コマンド"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"コマンド"},"children":["コマンド"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"例"},"children":["例"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx segment list"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["CDP オーディエンスセグメントを一覧表示"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx segment list"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx sg validate <file>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["セグメント YAML ファイルを検証"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx sg validate segment.yaml"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx parent-segment list"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["親セグメントを一覧表示"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx parent-segment list"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx journey list"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ジャーニーを一覧表示"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx journey list"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx journey validate <file>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ジャーニー YAML ファイルを検証"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx journey validate journey.yaml"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx activations <segment>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["セグメントのアクティベーションを一覧表示"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx activations parent/child"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ai-コマンド","__idx":9},"children":["AI コマンド"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"コマンド"},"children":["コマンド"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"例"},"children":["例"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx agents"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["現在のプロジェクトのエージェントを一覧表示"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx agents"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx llm projects"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["LLM プロジェクトを一覧表示"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx llm projects"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"コンテキストユーティリティコマンド","__idx":10},"children":["コンテキスト＆ユーティリティコマンド"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"コマンド"},"children":["コマンド"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"例"},"children":["例"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx status"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["認証ステータスと現在のコンテキストを表示"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx status"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx use database <db>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["セッションのアクティブなデータベースを設定"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx use database mydb"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx api <endpoint>"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["生の API リクエストを実行"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx api --type td /v3/job/list"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"プロのヒント"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["リストコマンドのエイリアスとして複数形を使用できます：",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx databases"]}," = ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx database list"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx tables mydb"]}," = ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx table list mydb"]},"、",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx segments"]}," = ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx segment list"]},"。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"出力フォーマット","__idx":11},"children":["出力フォーマット"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["デフォルトでは、tdx は人間が読みやすいテーブル形式で結果を出力します。フラグを使用して出力フォーマットを制御できます。"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"フラグ"},"children":["フラグ"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"フォーマット"},"children":["フォーマット"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"ユースケース"},"children":["ユースケース"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--table"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["テーブル（デフォルト）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["人間が読みやすい表示"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--json"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSON"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["AI 処理向けの構造化データ"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--jsonl"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["JSON Lines"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ストリーミング／行ごとの処理"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--tsv"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["TSV"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["スプレッドシートインポート向けのタブ区切り"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["AI が代わりに tdx コマンドを実行する場合、プログラム的に処理しやすい構造化出力を取得するために ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--json"]}," を使用することがあります。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"サーバーサイド実行環境","__idx":12},"children":["サーバーサイド実行環境"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["すべての tdx コマンドは、お使いのローカルマシンではなく、隔離されたサーバーサイドサンドボックスで実行されます。これは以下を意味します。"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure AI の認証情報"]},"はサーバーサイドで管理され、ブラウザには保存されません"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ネットワークアクセス"]},"は Treasure AI API および認可済みエンドポイントに制限されています"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ファイルシステムのスコープ"]},"はチャットセッションの作業ディレクトリに限定されます"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["ローカルへの副作用なし"]}," — お使いのコンピューターへのインストールや読み取りは行われません"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["サンドボックス実行環境の詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/security"},"children":["セキュリティ＆パーミッション"]},"をご覧ください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-studio-labs-との違い","__idx":13},"children":["Treasure Studio Labs との違い"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"機能"},"children":["機能"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Treasure Studio Labs"},"children":["Treasure Studio Labs"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Treasure AI Studio"},"children":["Treasure AI Studio"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["実行環境"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ローカルマシン（お使いのターミナル）"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["サーバーサイドサンドボックス"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["コマンドパレット"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["アクション用 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Cmd+Shift+P"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["GA では利用不可"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["MCP ツール"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ローカル MCP サーバー経由で接続"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["GA では利用不可（MCP は GA 後）"]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"技術的な注意事項"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Studio Labs では、tdx コマンドはローカルの tdx インストールを使用してローカルマシン上で直接実行されていました。Treasure AI Studio では、同じコマンドがマネージドの tdx インストールを使用してサーバーサイドサンドボックスで実行されます。コマンドの構文は同一ですが、実行環境が変わっています。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"確認","__idx":14},"children":["確認"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"input","attributes":{"checked":false,"type":"checkbox","readOnly":true},"children":[]}," AI に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx status"]}," の実行を依頼して、認証ステータスとリージョンを確認する"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"input","attributes":{"checked":false,"type":"checkbox","readOnly":true},"children":[]}," AI に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx databases"]}," の実行を依頼して、Treasure AI データベースの一覧を確認する"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"input","attributes":{"checked":false,"type":"checkbox","readOnly":true},"children":[]}," ツールコールを展開して、完全なコマンドと生の出力を確認する"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"トラブルシューティング","__idx":15},"children":["トラブルシューティング"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"問題"},"children":["問題"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"解決策"},"children":["解決策"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["コマンドが「not found」または空の出力を返す"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Treasure AI アカウントに期待するデータベースとリソースがあることを確認してください。AI に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["tdx status"]}," の実行を依頼して、認証とリージョンが正しいことを確認してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["出力が切り捨てられる"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["大きな出力はチャットに収まるようにトリミングされます。AI に ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--format json"]}," フラグ付きでコマンドを実行するよう依頼するか、結果の要約を求めてください"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"次のステップ","__idx":16},"children":["次のステップ"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/query/query-execution"},"children":["クエリ実行"]}," — AI を通じた Trino クエリの実行"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/query/query-results"},"children":["クエリ結果テーブル"]}," — クエリ結果の表示について"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/ja/products/ai-studio/skills/skills"},"children":["スキル＆マーケットプレイス"]}," — SQL、セグメントなど向けのプリビルトスキル"]}]}]},"headings":[{"value":"TDX コマンド（サーバーサイド CLI）","id":"tdx-コマンドサーバーサイド-cli","depth":1},{"value":"目的","id":"目的","depth":2},{"value":"前提条件","id":"前提条件","depth":2},{"value":"TDX コマンドの実行","id":"tdx-コマンドの実行","depth":2},{"value":"直接コマンドを使用する場面","id":"直接コマンドを使用する場面","depth":3},{"value":"AI にコマンドを選択させる場面","id":"ai-にコマンドを選択させる場面","depth":3},{"value":"利用可能な TDX コマンド","id":"利用可能な-tdx-コマンド","depth":2},{"value":"データコマンド","id":"データコマンド","depth":3},{"value":"CDP コマンド","id":"cdp-コマンド","depth":3},{"value":"AI コマンド","id":"ai-コマンド","depth":3},{"value":"コンテキスト＆ユーティリティコマンド","id":"コンテキストユーティリティコマンド","depth":3},{"value":"出力フォーマット","id":"出力フォーマット","depth":2},{"value":"サーバーサイド実行環境","id":"サーバーサイド実行環境","depth":2},{"value":"Treasure Studio Labs との違い","id":"treasure-studio-labs-との違い","depth":2},{"value":"確認","id":"確認","depth":2},{"value":"トラブルシューティング","id":"トラブルシューティング","depth":2},{"value":"次のステップ","id":"次のステップ","depth":2}],"frontmatter":{"seo":{"title":"Treasure AI Studio - TDX コマンド（サーバーサイド CLI）","description":"フル機能の tdx CLI が Studio のサーバーサイドサンドボックス内で動作します。AI チャットを離れることなく、データベースのクエリ、セグメントの管理、ジャーニーの検証、API レスポンスの確認が可能です。"},"platforms":["Web","Desktop"]},"lastModified":"2026-05-11T06:01:24.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/products/ai-studio/query/tdx-commands","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}