{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Shopify Export Integration CLI","description":"Shopify Export Integration CLIを使用して、Treasure AIからShopifyにメタフィールドデータをエクスポートする方法と制限事項を説明します。","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"shopify-export-integration-cli","__idx":0},"children":["Shopify Export Integration CLI"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CLIを使用してTreasure DataからShopifyにデータ結果をエクスポートできます（TD Toolbelt）。"]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This feature is in BETA version. For more information, contact your Customer Success Representative."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/tools/cli-and-sdks/td-toolbelt"},"children":["TD Toolbelt"]}," がインストールされていること。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Shopifyとその認証情報に関する基本的な知識があること。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"制限事項","__idx":2},"children":["制限事項"]},{"$$mdtype":"Tag","name":"p","attributes":{},"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":"Action"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Action"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Resource"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Resource"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Column require"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Column require"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Query"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Query"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Note"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Note"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Update"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["[metafield_id: Integer, value: any]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SELECT metafield_id, value FROM table"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Shop"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["[key: String, namespace: String, value: any]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SELECT key, namespace, value FROM table"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Product"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["[product_id: Integer, key: String, namespace: String, value: any]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SELECT product_id, key, namespace, value FROM table ORDER BY product_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["パフォーマンスを向上させるためにORDER BYを使用してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Product Variant"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["[variant_id: Integer, key: String, namespace: String, value: any]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SELECT variant_id, key, namespace, value FROM table ORDER BY variant_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["パフォーマンスを向上させるためにORDER BYを使用してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Product Image"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["[product_id: Integer, image_id: Integer, key: String, namespace: String, value: any]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SELECT product_id, image_id, key, namespace, value FROM table ORDER BY product_id, image_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["パフォーマンスを向上させるためにORDER BYを使用してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Custom Collection"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["[custom_collection_id: Integer, key: String, namespace: String, value: any]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SELECT custom_collection_id, key, namespace, value FROM table ORDER BY custom_collection_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["パフォーマンスを向上させるためにORDER BYを使用してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Smart Collection"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["[smart_collection_id: Integer, key: String, namespace: String, value: any]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SELECT smart_collection_id, key, namespace, value FROM table ORDER BY smart_collection_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["パフォーマンスを向上させるためにORDER BYを使用してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Customer"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["[customer_id: Integer, key: String, namespace: String, value: any]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SELECT customer_id, key, namespace, value FROM table ORDER BY customer_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["パフォーマンスを向上させるためにORDER BYを使用してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Order"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["[order_id: Integer, key: String, namespace: String, value: any]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SELECT order_id, key, namespace, value FROM table ORDER BY order_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["パフォーマンスを向上させるためにORDER BYを使用してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Draft Order"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["[draft_order_id: Integer, key: String, namespace: String, value: any]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SELECT draft_order_id, key, namespace, value FROM table ORDER BY draft_order_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["パフォーマンスを向上させるためにORDER BYを使用してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Blog"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["[blog_id: Integer, key: String, namespace: String, value: any]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SELECT blog_id, key, namespace, value FROM table ORDER BY blog_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["パフォーマンスを向上させるためにORDER BYを使用してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Article"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["[blog_id: Integer, article_id: Integer, key: String, namespace: String, value: any]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SELECT blog_id, article_id, key, namespace, value FROM table ORDER BY blog_id, article_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["パフォーマンスを向上させるためにORDER BYを使用してください"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Page"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["[page_id: Integer, key: String, namespace: String, value: any]"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["SELECT page_id, key, namespace, value FROM table ORDER BY page_id"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["パフォーマンスを向上させるためにORDER BYを使用してください"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"コマンドラインを使用した接続の作成","__idx":3},"children":["コマンドラインを使用した接続の作成"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["CLIを使用して接続を設定できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query --database your_database\n--result configuration query\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"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":"Config Key"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Config Key"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Type"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Type"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Required"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Required"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Description"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-data-toolbeltのインストール","__idx":4},"children":["Treasure Data Toolbeltのインストール"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ターミナルを開き、次のコマンドを実行して最新の",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["Treasure Data Toolbelt"]},"をインストールします。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"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":{"width":"20%","data-label":"Config Key"},"children":["Config Key "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"15%","data-label":"Type"},"children":["Type "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"15%","data-label":"Required"},"children":["Required "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"50%","data-label":"Description"},"children":["Description "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["type"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["shopify_metafield"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["api_key"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Shopify APIキー。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["password"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Shopifyパスワード。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["store_name"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Shopifyのストア名"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["action"]}]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["string"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Yes"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次の値のみを受け付けます: create または update"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["create: リソースの新しいmetafieldを作成します"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["update: 既存のmetafieldの値を更新します"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["resource"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["string"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Yes (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["action"]},": ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["create"]},"の場合)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["次の値のみを受け付けます:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["shop"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["product"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["product_variant"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["product_image"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["custom_collection"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["smart_collection"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["customer"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["order"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["draft_order"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["blog"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["article"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["page"]}]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["stop_on_failed_record"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["boolean"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["No"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["チェックした場合、エラーレコードが発生するとエクスポートジョブが終了します。チェックしない場合、metafieldの作成/更新が失敗してもエクスポートジョブは続行されます。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"使用例","__idx":5},"children":["使用例"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"shopのメタフィールドを作成する","__idx":6},"children":["Shopのメタフィールドを作成する"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query \\\n  --database my_db \\\n  --result '{\n    \"type\": \"shopify_metafield\",\n    \"apikey\": \"xxxx\",\n    \"password\": \"xxxx\",\n    \"store_name\": \"xxxxx\",\n    \"action\": \"create\",\n    \"resource\": \"shop\",\n    \"stop_on_failed_record\": false\n  }' \\\n  \"SELECT page_id, key, namespace, value FROM table ORDER BY page_id\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"productのメタフィールドを作成する","__idx":7},"children":["Productのメタフィールドを作成する"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query \\\n  --database my_db \\\n  --result '{\n    \"type\": \"shopify_metafield\",\n    \"apikey\": \"xxxx\",\n    \"password\": \"xxxx\",\n    \"store_name\": \"xxxxx\",\n    \"action\": \"create\",\n    \"resource\": \"product\",\n    \"stop_on_failed_record\": false\n  }' \\\n  \"SELECT product_id, key, namespace, value FROM table ORDER BY product_id\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"product-variantのメタフィールドを作成する","__idx":8},"children":["Product Variantのメタフィールドを作成する"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query \\\n  --database my_db \\\n  --result '{\n    \"type\": \"shopify_metafield\",\n    \"apikey\": \"xxxx\",\n    \"password\": \"xxxx\",\n    \"store_name\": \"xxxxx\",\n    \"action\": \"create\",\n    \"resource\": \"product_variant\",\n    \"stop_on_failed_record\": false\n  }' \\\n  \"SELECT variant_id, key, namespace, value FROM table ORDER BY variant_id\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"product-imageのメタフィールドを作成する","__idx":9},"children":["Product Imageのメタフィールドを作成する"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query \\\n  --database my_db \\\n  --result '{\n  --database my_db \\\n  --result '{\n    \"type\": \"shopify_metafield\",\n    \"apikey\": \"xxxx\",\n    \"password\": \"xxxx\",\n    \"store_name\": \"xxxxx\",\n    \"action\": \"create\",\n    \"resource\": \"product_image\",\n    \"stop_on_failed_record\": false\n  }' \\\n  \"SELECT product_id, image_id, key, namespace, value FROM table ORDER BY product_id, image_id\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"カスタムコレクションのメタフィールドを作成する","__idx":10},"children":["カスタムコレクションのメタフィールドを作成する"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query \\\n  --database my_db \\\n  --result '{\n    \"type\": \"shopify_metafield\",\n    \"apikey\": \"xxxx\",\n    \"password\": \"xxxx\",\n    \"store_name\": \"xxxxx\",\n    \"action\": \"create\",\n    \"resource\": \"custom_collection\",\n    \"stop_on_failed_record\": false\n  }' \\\n  \"SELECT custom_collection_id, key, namespace, value FROM table ORDER BY custom_collection_id\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スマートコレクションのメタフィールドを作成する","__idx":11},"children":["スマートコレクションのメタフィールドを作成する"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query \\\n  --database my_db \\\n  --result '{\n    \"type\": \"shopify_metafield\",\n    \"apikey\": \"xxxx\",\n    \"password\": \"xxxx\",\n    \"store_name\": \"xxxxx\",\n    \"action\": \"create\",\n    \"resource\": \"smart_collection\",\n    \"stop_on_failed_record\": false\n  }' \\\n  \"SELECT smart_collection_id, key, namespace, value FROM table ORDER BY smart_collection_id\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"顧客のメタフィールドを作成する","__idx":12},"children":["顧客のメタフィールドを作成する"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query \\\n  --database my_db \\\n  --result '{\n    \"type\": \"shopify_metafield\",\n    \"apikey\": \"xxxx\",\n    \"password\": \"xxxx\",\n    \"store_name\": \"xxxxx\",\n    \"action\": \"create\",\n    \"resource\": \"customer\",\n    \"stop_on_failed_record\": false\n  }' \\\n  \"SELECT customer_id, key, namespace, value FROM table ORDER BY customer_id\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"注文のメタフィールドを作成する","__idx":13},"children":["注文のメタフィールドを作成する"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query \\\n  --database my_db \\\n  --result '{\n    \"type\": \"shopify_metafield\",\n    \"apikey\": \"xxxx\",\n    \"password\": \"xxxx\",\n    \"store_name\": \"xxxxx\",\n    \"action\": \"create\",\n    \"resource\": \"order\",\n    \"stop_on_failed_record\": false\n  }' \\\n  \"SELECT order_id, key, namespace, value FROM table ORDER BY order_id\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"下書き注文のメタフィールドを作成する","__idx":14},"children":["下書き注文のメタフィールドを作成する"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query \\\n  --database my_db \\\n  --result '{\n    \"type\": \"shopify_metafield\",\n    \"apikey\": \"xxxx\",\n    \"password\": \"xxxx\",\n    \"store_name\": \"xxxxx\",\n    \"action\": \"create\",\n    \"resource\": \"draft_order\",\n    \"stop_on_failed_record\": false\n  }' \\\n  \"SELECT draft_order_id, key, namespace, value FROM table ORDER BY draft_order_id\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ブログのメタフィールドを作成する","__idx":15},"children":["ブログのメタフィールドを作成する"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query \\\n  --database my_db \\\n  --result '{\n    \"type\": \"shopify_metafield\",\n    \"apikey\": \"xxxx\",\n    \"password\": \"xxxx\",\n    \"store_name\": \"xxxxx\",\n    \"action\": \"create\",\n    \"resource\": \"blog\",\n    \"stop_on_failed_record\": false\n  }' \\\n  \"SELECT blog_id, key, namespace, value FROM table ORDER BY blog_id\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"記事のメタフィールドを作成する","__idx":16},"children":["記事のメタフィールドを作成する"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query \\\n  --database my_db \\\n  --result '{\n    \"type\": \"shopify_metafield\",\n    \"apikey\": \"xxxx\",\n    \"password\": \"xxxx\",\n    \"store_name\": \"xxxxx\",\n    \"action\": \"create\",\n    \"resource\": \"article\",\n    \"stop_on_failed_record\": false\n  }' \\\n  \"SELECT blog_id, article_id, key, namespace, value FROM table ORDER BY blog_id, article_id\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"ページのメタフィールドを作成する","__idx":17},"children":["ページのメタフィールドを作成する"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query \\\n  --database my_db \\\n  --result '{\n    \"type\": \"shopify_metafield\",\n    \"apikey\": \"xxxx\",\n    \"password\": \"xxxx\",\n    \"store_name\": \"xxxxx\",\n    \"action\": \"create\",\n    \"resource\": \"page\",\n    \"stop_on_failed_record\": false\n  }' \\\n  \"SELECT page_id, key, namespace, value FROM table ORDER BY page_id\"\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"メタフィールドを更新する","__idx":18},"children":["メタフィールドを更新する"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"td query \\\n  --database my_db \\\n  --result '{\n    \"type\": \"shopify_metafield\",\n    \"apikey\": \"xxxx\",\n    \"password\": \"xxxx\",\n    \"store_name\": \"xxxxx\",\n    \"action\": \"update\",\n    \"stop_on_failed_record\": false\n  }' \\\n  \"SELECT metafield_id, value FROM table\"\n","lang":"bash"},"children":[]}]},"headings":[{"value":"Shopify Export Integration CLI","id":"shopify-export-integration-cli","depth":1},{"value":"前提条件","id":"前提条件","depth":2},{"value":"制限事項","id":"制限事項","depth":2},{"value":"コマンドラインを使用した接続の作成","id":"コマンドラインを使用した接続の作成","depth":2},{"value":"Treasure Data Toolbeltのインストール","id":"treasure-data-toolbeltのインストール","depth":2},{"value":"使用例","id":"使用例","depth":2},{"value":"Shopのメタフィールドを作成する","id":"shopのメタフィールドを作成する","depth":3},{"value":"Productのメタフィールドを作成する","id":"productのメタフィールドを作成する","depth":3},{"value":"Product Variantのメタフィールドを作成する","id":"product-variantのメタフィールドを作成する","depth":3},{"value":"Product Imageのメタフィールドを作成する","id":"product-imageのメタフィールドを作成する","depth":3},{"value":"カスタムコレクションのメタフィールドを作成する","id":"カスタムコレクションのメタフィールドを作成する","depth":3},{"value":"スマートコレクションのメタフィールドを作成する","id":"スマートコレクションのメタフィールドを作成する","depth":3},{"value":"顧客のメタフィールドを作成する","id":"顧客のメタフィールドを作成する","depth":3},{"value":"注文のメタフィールドを作成する","id":"注文のメタフィールドを作成する","depth":3},{"value":"下書き注文のメタフィールドを作成する","id":"下書き注文のメタフィールドを作成する","depth":3},{"value":"ブログのメタフィールドを作成する","id":"ブログのメタフィールドを作成する","depth":3},{"value":"記事のメタフィールドを作成する","id":"記事のメタフィールドを作成する","depth":3},{"value":"ページのメタフィールドを作成する","id":"ページのメタフィールドを作成する","depth":3},{"value":"メタフィールドを更新する","id":"メタフィールドを更新する","depth":3}],"frontmatter":{"seo":{"title":"Shopify Export Integration CLI","description":"Shopify Export Integration CLIを使用して、Treasure AIからShopifyにメタフィールドデータをエクスポートする方法と制限事項を説明します。"}},"lastModified":"2026-06-17T07:22:53.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/shopify-export-integration-cli","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}