<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: c99e</title>
    <description>The latest articles on DEV Community by c99e (@c99e).</description>
    <link>https://dev.to/c99e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3847333%2F2b309227-1f5b-4267-968d-3c146ddd0cc4.png</url>
      <title>DEV Community: c99e</title>
      <link>https://dev.to/c99e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/c99e"/>
    <language>en</language>
    <item>
      <title>I Built a CLI So AI Agents Can Manage My Shopify Store</title>
      <dc:creator>c99e</dc:creator>
      <pubDate>Sat, 28 Mar 2026 11:59:18 +0000</pubDate>
      <link>https://dev.to/c99e/i-built-a-cli-so-ai-agents-can-manage-my-shopify-store-114f</link>
      <guid>https://dev.to/c99e/i-built-a-cli-so-ai-agents-can-manage-my-shopify-store-114f</guid>
      <description>&lt;p&gt;I use AI tools for most of my software engineering work now. But every time I needed to do something in Shopify (check an order, update a product, look up a customer) I had to leave the terminal, open the admin dashboard, and click around. The AI could write code, run tests, manage deployments, but it couldn't touch my store.&lt;/p&gt;

&lt;p&gt;So I built &lt;a href="https://github.com/c99e/shopq" rel="noopener noreferrer"&gt;&lt;code&gt;shopq&lt;/code&gt;&lt;/a&gt;: a zero-dependency CLI for the Shopify Admin API, designed from the ground up to work with AI agents.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Gap
&lt;/h2&gt;

&lt;p&gt;There are three ways to interact with a Shopify store, and none of them fit an AI-first workflow.&lt;/p&gt;

&lt;p&gt;The &lt;strong&gt;admin dashboard&lt;/strong&gt; is point-and-click. Sure, you could throw a computer-use agent at it, but a direct CLI will always be simpler and faster than an AI trying to navigate a web UI.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://shopify.dev/docs/api/admin-graphql/latest" rel="noopener noreferrer"&gt;&lt;strong&gt;GraphQL Admin API&lt;/strong&gt;&lt;/a&gt; is powerful, and AI actually works with it pretty well. But building and maintaining a full client around it is overkill if you just want to manage your store. You shouldn't need to scaffold a whole project to list your products.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://shopify.dev/docs/api/shopify-cli" rel="noopener noreferrer"&gt;&lt;strong&gt;Shopify's own CLI&lt;/strong&gt;&lt;/a&gt; is built for app and theme development, not store management. It doesn't help you query orders or update products.&lt;/p&gt;

&lt;p&gt;I wanted to manage my Shopify store the same way I manage everything else in my dev workflow: from the terminal, with AI doing the heavy lifting.&lt;/p&gt;

&lt;h2&gt;
  
  
  Built for Agents
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;shopq&lt;/code&gt; was built with AI agents as the primary user.&lt;/p&gt;

&lt;p&gt;That means: structured JSON output (&lt;code&gt;--json&lt;/code&gt;), predictable exit codes, no interactive prompts, no ambiguity. Everything an agent needs to run a command, parse the result, and decide what to do next.&lt;/p&gt;

&lt;p&gt;It also ships with a &lt;a href="https://github.com/c99e/shopq/tree/main/skills/shopq" rel="noopener noreferrer"&gt;&lt;code&gt;SKILL.md&lt;/code&gt;&lt;/a&gt;, so AI tools that support skills can pick it up and understand how to use it immediately. It's listed in the pi directory too, so users with compatible AI terminals can install the skill and CLI together and start working right away.&lt;/p&gt;

&lt;p&gt;Zero dependencies. Just Bun's built-in capabilities. Install it and go.&lt;/p&gt;

&lt;h2&gt;
  
  
  What &lt;code&gt;shopq&lt;/code&gt; Does
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;shopq&lt;/code&gt; wraps the Shopify Admin GraphQL API and exposes it as simple, composable commands. Products, orders, collections, pages, files, themes. The things you actually touch day-to-day.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# install globally (works with Bun v1.3+ or Node.js v22+)&lt;/span&gt;
bun &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; shopq

&lt;span class="c"&gt;# store info&lt;/span&gt;
shopq shop get

&lt;span class="c"&gt;# products&lt;/span&gt;
shopq product list
shopq product get &lt;span class="s2"&gt;"Summer Tee"&lt;/span&gt;
shopq product create &lt;span class="nt"&gt;--title&lt;/span&gt; &lt;span class="s2"&gt;"New Item"&lt;/span&gt; &lt;span class="nt"&gt;--vendor&lt;/span&gt; &lt;span class="s2"&gt;"My Brand"&lt;/span&gt;
shopq product update &lt;span class="s2"&gt;"Summer Tee"&lt;/span&gt; &lt;span class="nt"&gt;--status&lt;/span&gt; active

&lt;span class="c"&gt;# pages, collections, menus&lt;/span&gt;
shopq page list
shopq collection get &lt;span class="s2"&gt;"frontpage"&lt;/span&gt;
shopq menu list

&lt;span class="c"&gt;# structured output for piping and automation&lt;/span&gt;
shopq product list &lt;span class="nt"&gt;--json&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No GraphQL knowledge required. No browser. Structured, predictable output that both humans and AI agents can work with.&lt;/p&gt;

&lt;p&gt;And for the cases where existing commands don't cover what you need, there's a direct GraphQL escape hatch:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;shopq gql &lt;span class="s2"&gt;"{ shop { name email } }"&lt;/span&gt;
shopq gql - &amp;lt; query.graphql
shopq gql &lt;span class="s2"&gt;"mutation(...)"&lt;/span&gt; &lt;span class="nt"&gt;--variables&lt;/span&gt; &lt;span class="s1"&gt;'{"id":"..."}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This covers the long tail. AI is actually great at writing one-off GraphQL queries, so between the built-in commands and &lt;code&gt;gql&lt;/code&gt;, you can do pretty much anything the Admin API supports.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# install the CLI globally&lt;/span&gt;
bun &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; shopq

&lt;span class="c"&gt;# or install as a pi coding agent package&lt;/span&gt;
pi &lt;span class="nb"&gt;install &lt;/span&gt;npm:shopq
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Full source and docs: &lt;a href="https://github.com/c99e/shopq" rel="noopener noreferrer"&gt;github.com/c99e/shopq&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you're building on Shopify and using AI tools in your workflow, give it a try. I'm actively developing it and want to hear what commands or workflows would be most useful.&lt;/p&gt;

&lt;p&gt;What Shopify tasks would you want your AI agent to handle?&lt;/p&gt;

</description>
      <category>shopify</category>
      <category>cli</category>
      <category>opensource</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
