# Shopify CLI for AI Agents

```json
{
  "title": "Shopify CLI for AI Agents",
  "toolkit": "Shopify",
  "toolkit_slug": "shopify",
  "framework": "CLI",
  "framework_slug": "cli",
  "url": "https://composio.dev/toolkits/shopify/framework/cli",
  "markdown_url": "https://composio.dev/toolkits/shopify/framework/cli.md",
  "updated_at": "2026-05-06T08:28:13.467Z"
}
```

## Introduction

CLIs are eating MCPs. The industry is converging on the very same idea. MCPs for all their merit can be token hungry, slow, and unreliable for complex tool chaining. However, coding agents have become incredibly good at working with CLIs, and in fact they are far more comfortable working with CLI tools than MCP.
With Composio's Universal CLI, your coding agents can talk to over 1000+ SaaS applications. With Shopify, agents can create a new product called 'summer t-shirt', add product id 1234 to 'holiday specials' collection, delete the image with id 5678 from product id 4321, and more — all without worrying about authentication.
This guide walks you through Composio Universal CLI and explains how you can connect it with coding agents like Claude Code, Codex, OpenCode, etc, for end-to-end Shopify automation.

## Also integrate Shopify with

- [ChatGPT](https://composio.dev/toolkits/shopify/framework/chatgpt)
- [OpenAI Agents SDK](https://composio.dev/toolkits/shopify/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/shopify/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/shopify/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/shopify/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/shopify/framework/codex)
- [Cursor](https://composio.dev/toolkits/shopify/framework/cursor)
- [VS Code](https://composio.dev/toolkits/shopify/framework/vscode)
- [OpenCode](https://composio.dev/toolkits/shopify/framework/opencode)
- [OpenClaw](https://composio.dev/toolkits/shopify/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/shopify/framework/hermes-agent)
- [Google ADK](https://composio.dev/toolkits/shopify/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/shopify/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/shopify/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/shopify/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/shopify/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/shopify/framework/crew-ai)

## TL;DR

The idea behind building the universal CLI is to give agents a single command interface to interact with all your external applications. Here's what you'll get with it:
- Agent-friendly: Coding agents like Claude Code, Codex, and OpenCode can use CLI tools natively — no MCP setup required.
- Authentication handled: Connect once via OAuth or API Key, and all CLI commands work with your credentials automatically.
- Tool discovery: Search, inspect, and execute 20,000+ tools across 1000+ apps from one interface.
- Trigger support: Use triggers to listen for events across your apps, powered by real-time webhooks or polling under the hood.
- Type generation: Generate typed schemas for autocomplete and type safety in your projects.

## Connect Shopify to CLI

### Prerequisites
Install the Composio CLI, authenticate, and initialize your project:

```bash
# Install the Composio CLI
curl -fsSL https://composio.dev/install | bash

# Authenticate with Composio
composio login
```

## What is the Shopify MCP server, and what's possible with it?

The Shopify MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Shopify account. It provides structured and secure access to your store, so your agent can perform actions like managing products, processing orders, handling collections, organizing images, and managing customers on your behalf.
- Product management and automation: Let your agent create new products, update existing listings, or delete products from your Shopify store quickly and accurately.
- Order creation and fulfillment: Direct your agent to generate new orders, associate them with customers, and streamline your sales process with minimal manual input.
- Collection organization: Ask your agent to create custom collections, add products to collections, or remove collections to keep your store categories organized and up to date.
- Product image handling: Have your agent add new images to products, count existing images for inventory tracking, or remove outdated images from your catalog.
- Customer management: Automate the creation of new customer records, making it easy to onboard shoppers and keep your CRM current without lifting a finger.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `SHOPIFY_ADD_PRODUCT_TO_COLLECTION` | Add product to custom collection | Adds a product to an existing *custom collection*, optionally specifying its `position` if the collection is manually sorted. |
| `SHOPIFY_COUNT_PRODUCT_IMAGES` | Count product images | Retrieves the total count of images for a shopify product, useful for inventory management or display logic; the provided `product id` must exist in the store. |
| `SHOPIFY_CREATE_CUSTOM_COLLECTION` | Create a custom collection | Creates a new custom collection in a shopify store, requiring a unique title for manually curated product groupings (e.g., 'new arrivals', 'seasonal specials'). |
| `SHOPIFY_CREATE_CUSTOMER` | Create Customer | Tool to create a new customer in shopify. use when you need to add a new customer record to the store. |
| `SHOPIFY_CREATE_ORDER` | Create an order | Creates a new order in shopify, typically requiring line items; if `customer id` is provided, it must correspond to an existing customer. |
| `SHOPIFY_CREATE_PRODUCT` | Create a product | Creates a new product in a shopify store; a product title is generally required. |
| `SHOPIFY_CREATE_PRODUCT_IMAGE` | Create Product Image | Tool to create a new product image for a given product. use when you need to add an image to a product by providing the image source url or attachment. |
| `SHOPIFY_DELETE_CUSTOM_COLLECTION` | Delete custom collection | Permanently deletes a custom collection from a shopify store using its `collection id`; this action is irreversible and requires a valid, existing `collection id`. |
| `SHOPIFY_DELETE_PRODUCT` | Delete a product | Deletes a specific, existing product from a shopify store using its unique product id; this action is irreversible. |
| `SHOPIFY_DELETE_PRODUCT_IMAGE` | Delete product image | Deletes a specific image from a product in shopify, requiring the `product id` of an existing product and the `image id` of an image currently associated with that product. |
| `SHOPIFY_GET_ALL_CUSTOMERS` | Get All Customers | Retrieves customer records from a shopify store, with options for filtering, selecting specific fields, and paginating through the results. |
| `SHOPIFY_GET_COLLECTION_BY_ID` | Get collection by ID | Retrieves a specific shopify collection by its `collection id`, optionally filtering returned data to specified `fields`. |
| `SHOPIFY_GET_COLLECTS` | Get collects | Retrieves a list of collects from a shopify store, where a collect links a product to a custom collection. |
| `SHOPIFY_GET_COLLECTS_COUNT` | Get collects count | Retrieves the total count of collects (product-to-collection associations) in a shopify store. |
| `SHOPIFY_GET_CUSTOM_COLLECTIONS` | Get custom collections | Retrieves a list of custom collections from a shopify store, optionally filtered by ids, product id, or handle. |
| `SHOPIFY_GET_CUSTOM_COLLECTIONS_COUNT` | Get custom collections count | Retrieves the total number of custom collections in a shopify store. |
| `SHOPIFY_GET_CUSTOMER` | Get Customer | Retrieves detailed information for a specific customer from a shopify store, provided their valid and existing `customer id`. |
| `SHOPIFY_GET_CUSTOMER_ORDERS` | Get customer orders | Retrieves all orders for a specific, existing customer in shopify using their unique customer id. |
| `SHOPIFY_GET_ORDER_LIST` | Get order list | Retrieves a list of orders from shopify using default api settings and filters. |
| `SHOPIFY_GET_ORDERSBY_ID` | Get order by id | Retrieves a specific shopify order by its unique id, which must correspond to an existing order. |
| `SHOPIFY_GET_PRODUCT` | Get product | Retrieves details for an existing shopify product using its unique product id. |
| `SHOPIFY_GET_PRODUCT_IMAGE` | Get product image | Retrieves detailed information for a specific product image, identified by its id and its associated product id, from a shopify store. |
| `SHOPIFY_GET_PRODUCT_IMAGES` | Get Product Images | Retrieves all images for a shopify product, specified by its `product id` which must correspond to an existing product. |
| `SHOPIFY_GET_PRODUCTS` | Get products | Retrieves a list of products from a shopify store. |
| `SHOPIFY_GET_PRODUCTS_COUNT` | Get products count | Retrieves the total, unfiltered count of all products in a shopify store. |
| `SHOPIFY_GET_PRODUCTS_IN_COLLECTION` | Get products in collection | Retrieves all products within a specified shopify collection, requiring a valid `collection id`. |
| `SHOPIFY_GET_SHOP_DETAILS` | Get Shop Details | Retrieves comprehensive administrative information about the authenticated shopify store, as defined by the shopify api. |
| `SHOPIFY_UPDATE_ORDER` | Update Order | Updates the phone number for an existing shopify order, identified by its id; pass `phone=none` to remove the current phone number. |

## Supported Triggers

None listed.

## Complete Code

None listed.

## Conclusion

- Try asking your coding agent to perform various Shopify operations
- Explore cross-app workflows by connecting more toolkits
- Set up triggers for real-time automation
- Use composio generate for typed schemas in your projects

## How to build Shopify MCP Agent with another framework

- [ChatGPT](https://composio.dev/toolkits/shopify/framework/chatgpt)
- [OpenAI Agents SDK](https://composio.dev/toolkits/shopify/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/shopify/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/shopify/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/shopify/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/shopify/framework/codex)
- [Cursor](https://composio.dev/toolkits/shopify/framework/cursor)
- [VS Code](https://composio.dev/toolkits/shopify/framework/vscode)
- [OpenCode](https://composio.dev/toolkits/shopify/framework/opencode)
- [OpenClaw](https://composio.dev/toolkits/shopify/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/shopify/framework/hermes-agent)
- [Google ADK](https://composio.dev/toolkits/shopify/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/shopify/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/shopify/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/shopify/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/shopify/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/shopify/framework/crew-ai)

## Related Toolkits

- [Addresszen](https://composio.dev/toolkits/addresszen) - Addresszen is a real-time address autocomplete and verification service. It helps capture accurate, deliverable addresses with instant suggestions and validation.
- [Asin data api](https://composio.dev/toolkits/asin_data_api) - Asin data api gives you detailed, real-time product data from Amazon, including price, rank, and reviews. Perfect for e-commerce pros and data-driven marketers who need instant marketplace insights.
- [Baselinker](https://composio.dev/toolkits/baselinker) - BaseLinker is an all-in-one e-commerce management platform connecting stores, marketplaces, carriers, and more. It streamlines order processing, inventory control, and automates your sales operations.
- [Bestbuy](https://composio.dev/toolkits/bestbuy) - Best Buy is a leading retailer offering APIs for product, store, and recommendation data. Instantly access up-to-date retail insights for smarter shopping and decision-making.
- [Btcpay server](https://composio.dev/toolkits/btcpay_server) - BTCPay Server is a free, open-source, self-hosted Bitcoin payment processor. It lets merchants accept Bitcoin payments directly, cutting out middlemen and boosting privacy.
- [Cdr platform](https://composio.dev/toolkits/cdr_platform) - Cdr platform is an API for purchasing carbon dioxide removal services. It enables businesses to offset emissions by accessing verified carbon removal projects.
- [Cloudcart](https://composio.dev/toolkits/cloudcart) - CloudCart is an e-commerce platform for building and managing online stores. It helps businesses streamline product listings, orders, and customer engagement.
- [Countdown api](https://composio.dev/toolkits/countdown_api) - Countdown API gives you real-time, structured eBay product data, reviews, and seller feedback. Perfect for powering price monitoring, product research, or marketplace analytics workflows.
- [Dpd2](https://composio.dev/toolkits/dpd2) - Dpd2 is a robust email management platform for handling, sorting, and automating email workflows. Streamline your communications and boost productivity with advanced sorting, labeling, and response tools.
- [Finerworks](https://composio.dev/toolkits/finerworks) - FinerWorks is an online platform for fine art and photo printing services. Artists and photographers use it to order custom prints and manage print inventory efficiently.
- [Fingertip](https://composio.dev/toolkits/fingertip) - Fingertip is a business management platform for selling, booking, and customer engagement—all from a single link. It helps businesses streamline operations and connect with customers across social channels.
- [Fraudlabs pro](https://composio.dev/toolkits/fraudlabs_pro) - FraudLabs Pro is an online payment fraud detection service for e-commerce and merchants. It helps minimize chargebacks and revenue loss by detecting and preventing fraudulent transactions.
- [Gift up](https://composio.dev/toolkits/gift_up) - Gift Up! is a digital platform for selling, managing, and redeeming gift cards online. It streamlines promotions and gift card transactions for businesses and their customers.
- [Goody](https://composio.dev/toolkits/goody) - Goody is a gifting platform that lets users send gifts and physical products without handling logistics. It streamlines gifting by managing delivery, fulfillment, and recipient experience.
- [Gumroad](https://composio.dev/toolkits/gumroad) - Gumroad is a platform for selling digital products, physical goods, and memberships with a simple checkout and marketing tools. It streamlines creator payouts and helps you grow your audience effortlessly.
- [Instacart](https://composio.dev/toolkits/instacart) - Instacart is an online grocery delivery and pickup service platform. It lets you discover local retailers and create shoppable lists and recipes with ease.
- [Junglescout](https://composio.dev/toolkits/junglescout) - Junglescout is an Amazon product research and analytics platform for sellers. It delivers sales estimates, competitive insights, and optimization tools to boost your Amazon business.
- [Ko fi](https://composio.dev/toolkits/ko_fi) - Ko-fi is a platform that lets creators receive donations, memberships, and sales from fans. It helps creators monetize their work and grow their audience with minimal friction.
- [Lemon squeezy](https://composio.dev/toolkits/lemon_squeezy) - Lemon Squeezy is a payments and subscription platform built for software companies. It makes managing payments, taxes, and customer subscriptions effortless.
- [Loyverse](https://composio.dev/toolkits/loyverse) - Loyverse is a point-of-sale (POS) platform for small businesses, offering tools for sales, inventory, and customer loyalty. It helps streamline retail operations and boost customer engagement.

## Frequently Asked Questions

### What is the Composio Universal CLI?

The Composio Universal CLI is a single command-line interface that lets coding agents and developers interact with 1000+ SaaS applications. It handles authentication, tool discovery, action execution, and trigger setup — all from the terminal, without needing to configure MCP servers.

### Which coding agents work with the Composio CLI?

Any coding agent that can run shell commands works with the Composio CLI — including Claude Code, Codex, OpenCode, OpenClaw, and others. Once the CLI is installed, agents automatically discover and use the composio commands to interact with Shopify and other connected apps.

### How is the CLI different from using an MCP server for Shopify?

MCP servers require configuration and can be token-heavy for complex workflows. The CLI gives agents a direct, lightweight interface — no server setup needed. Agents simply call composio commands like any other shell tool. It's faster to set up, more reliable for multi-step tool chaining, and works natively with how coding agents already operate.

### How safe is my Shopify data when using the Composio CLI?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Shopify data and credentials are handled as safely as possible. You can also bring your own OAuth credentials for full control.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
