KosmoKrator

sales

Shopify CLI for Headless Automation

Use the Shopify CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 6 read 1 write Bearer token auth

Shopify CLI for Headless Automation

Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.

Use headless automation when another tool needs a stable local command surface. The Shopify CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Shopify CLI for Headless Automation
kosmokrator integrations:configure shopify --set access_token="$SHOPIFY_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call shopify.shopify_list_products '{"limit":1,"status":"example_status","product_type":"example_product_type","vendor":"example_vendor","collection_id":"example_collection_id","page_info":"example_page_info"}' --json

Discovery Before Execution

Agents and scripts can inspect Shopify docs and schemas before choosing a function.

kosmo integrations:docs shopify --json
kosmo integrations:docs shopify.shopify_list_products --json
kosmo integrations:schema shopify.shopify_list_products --json
kosmo integrations:search "Shopify" --json
kosmo integrations:list --json

Useful Shopify CLI Functions

FunctionTypeParametersDescription
shopify.shopify_list_products Read limit, status, product_type, vendor, collection_id, page_info List products from the Shopify store. Supports filtering by status, product type, vendor, and pagination.
shopify.shopify_get_product Read id Get a single product from the Shopify store by its ID. Returns full product details.
shopify.shopify_create_product Write title, body_html, vendor, product_type, status, tags, published Create a new product in the Shopify store. Requires a title. Supports description, vendor, product type, tags, and status.
shopify.shopify_list_orders Read limit, status, financial_status, fulfillment_status, page_info List orders from the Shopify store. Supports filtering by status, financial status, fulfillment status, and pagination.
shopify.shopify_get_order Read id Get a single order from the Shopify store by its ID. Returns full order details including line items and totals.
shopify.shopify_list_customers Read limit, email, tag, page_info List customers from the Shopify store. Supports filtering by email or tag and pagination.
shopify.shopify_get_current_user Read none Get the current shop info from Shopify. Use this to verify the API connection is working.

Automation Notes

Related Shopify CLI Pages