Skip to content
Femi Adegoke

Dec 6, 202614 min read

You install it, you run it, and nothing's metered: Shopify CLI is a command-line tool for building Shopify apps, themes and Hydrogen storefronts, whether you're wiring up a store on its own or alongside automation tools like Activepieces, and it carries no per-unit price.

Shopify CLI as unmetered development tool

Prices below were checked on 2026-12-06 against shopify.dev and the sources linked beside each figure.

What Shopify CLI does

Run it 500 times in a day or twice, and you pay the same. The CLI runs on a developer's laptop. It scaffolds an app or theme, serves a local preview, and pushes your changes to a development store.

A laptop on a desk showing a terminal window, with a development store storefront preview in a browser window beside it…

169,186 weekly npm downloads of @shopify/cli on May 19, 2025, then 166,635 on May 26, according to CommerceGeek.

Weekly @shopify/cli npm downloads, mid-2025

By June 16 the count had slid to 158,736, after 162,711 on June 2 and 160,327 on June 9, and then it rose to 167,014 on June 23.

That's a swing of about 10,000 across six weeks: a large installed base in routine use.

This takes minutes, not a project: automate it in Activepieces free.

Admin API as the metered backend

The Admin API is the server side, where the metering lives. It's GraphQL, and it's rate-limited, so the unit you budget against is request capacity, not a charge per call.

The CLI talks to it on your behalf, but the API's a separate system with its own credentials and its own limits.

A recurring store job, such as an Activepieces flow syncing orders, is sized against the Admin API's limits, not the CLI, and Activepieces bills it as 1 credit per run however many steps the flow has.

Shopify CLI cost and Shopify plan pricing

The Shopify Pricing Tracker shows Basic costs $39 a month billed monthly or $29 on annual billing, which means you save $120 by committing to annual billing.

Shopify Pricing Tracker data puts Grow at $105 monthly or $89 annually.

Per the Shopify Pricing Tracker, Advanced is $399 monthly or $359 annually.

Shopify's pricing is $39 a month on Basic, $105 on Grow, and $399 on Advanced when billed monthly.

Those are plan fees paid to run a store, not CLI fees, and the CLI works the same on all of them.

Shopify CLI installation and cross-platform login

You install it through npm on macOS, Linux and Windows, with Homebrew as a macOS alternative, and it signs in through your browser rather than with an API key.

You need Node.js (a current LTS release is the safe choice) and Git.

npm install -g @shopify/cli@latest

On macOS, Homebrew also works:

brew tap shopify/shopify
brew install shopify-cli

Check the install with shopify version. If the command isn't found on Windows, open a new terminal so it picks up the updated path.

Log in and pick a store

You don't paste a key into the CLI. Run a command that needs a store and it opens a browser window for you to sign in:

shopify theme dev --store your-store.myshopify.com

The login belongs to your Shopify account, so what you can touch depends on your staff or collaborator permissions on that store.

Get a Shopify Admin API access token

Don't expect the CLI's login to hand you a token for your own scripts. Scripts talk to the Admin API, which has its own credentials.

For an app created in the Dev Dashboard, take the client ID and client secret from the app's settings, then exchange them for a short-lived token:

curl -X POST "https://your-store.myshopify.com/admin/oauth/access_token" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d "client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&grant_type=client_credentials"

Because the token expires, a scheduled job has to request a fresh one each run. Then send a minimal GraphQL query, with the API version in the URL:

curl -X POST "https://your-store.myshopify.com/admin/api/2025-10/graphql.json" \
 -H "Content-Type: application/json" \
 -H "X-Shopify-Access-Token: YOUR_ACCESS_TOKEN" \
 -d '{"query":"{ shop { name } }"}'

Essential Shopify CLI commands with examples

Of the ten commands that cover most daily work, only some touch a live store; the table below shows which, so you can tell a local scaffold from a change that customers will see.

Command Example What it changes Touches a live store
app init shopify app init Creates a local app project No
app dev shopify app dev Runs a local dev server and installs a development version on a store Yes, a development store you choose
app deploy shopify app deploy Releases a new app version with your config and extensions Yes, for every store with the app installed
app generate extension shopify app generate extension Adds extension files to your project No
app config link shopify app config link Connects local config to an app in your Partner account No store changes; it rewrites local config
theme init shopify theme init Clones a starter theme locally No
theme dev shopify theme dev Serves a local preview with hot reload Previews against a store, without publishing
theme pull shopify theme pull Overwrites local files with the remote theme No, it reads from the store
theme push shopify theme push Overwrites the remote theme with local files Yes, on whichever theme you target
theme check shopify theme check Lints the theme and reports problems No

App commands

app config link ties the local folder to an existing app so you don't create a duplicate.

Theme commands

theme pull is how you take a snapshot before you change anything. theme push is the risky one: pointed at a published theme, it replaces live files.

Run theme check before every push, because it enforces file size limits per folder, per Shopify Theme Check:

Maximum theme file size by folder, as Shopify checks it

  • Assets: 20 MB per file, so large media belongs there, not in other folders.
  • Locales and settings data: 1.5 MB per file each.
  • Settings schema and section JSON: 0.5 MB per file each, so generated section JSON from an import can breach it.
  • Snippets and layout: 0.25 MB per file, the tightest limit, so a large inline script in a snippet fails first.

80-fold is the spread, from 0.25 MB to 20 MB.

Shopify CLI config files and environment variables

Name, client ID, scopes and webhook settings all live in shopify.app.toml. app config link writes it. app deploy pushes it, so editing scopes there changes what the app requests on the next release.

A single configuration file card with rows of short lines for name, client ID, scopes and webhook settings, and an arrow…

You can follow the rest of this with the builder open. Start free, no card.

Shopify CLI errors and API limits

Once the CLI runs unattended, its failures fall into two groups: ones from your machine or pipeline (Node, login, store, scope), and ones from the Admin API's metering. Only the second involves a limit you can exhaust.

Shopify CLI install and login errors

If you see a Node version error, the runtime on that machine's older than the CLI supports. Run node --version, compare it with the requirement in Shopify's install docs, and pin the version in your CI image.

When the login loops, the CLI usually holds a session for a different account or organization than the one that owns the store. Log out with shopify auth logout, sign in again with the right account, and retry.

Two different account badge cards held up beside a store door: one badge matches the store's lock and the other does not…

"Wrong store" is the costly one. If you don't pass --store explicitly, the CLI may reuse the last store it remembers, so a script written for staging can act on production.

shopify theme push overwrites whatever theme it targets. So pass --theme with the ID of an unpublished theme, and never let a default point at the live one.

**If you don't pass --store explicitly, the CLI may reuse the last store it remembers, so a script written for staging can act on production.

Shopify CLI permission and access scope errors

When you get "Access denied" or a missing-scope message, the app or token was granted fewer access scopes than the call needs.

Add the scope to the app's configuration, deploy that change, and have the merchant approve the new scope. Reinstalling alone won't help if the configuration never asked for it.

Shopify API throttling and GraphQL cost limits

The CLI itself isn't metered. The GraphQL Admin API is, and it charges by query cost, not by request count.

Each store has a bucket of points that refills at a steady rate, and each query spends points based on the fields and connections it asks for. Both numbers depend on the store's plan, so a query that's fine on Plus can throttle on Basic.

I haven't verified bucket sizes and restore rates for this article, so I'm not printing them. Read them from Shopify's Admin API rate limits page on shopify.dev, and note the date you checked them.

When the bucket runs dry, the response carries a THROTTLED error. Handle it in this order:

  1. Read the extensions.cost block on every response. It reports the cost requested and the bucket's current state.
  2. On THROTTLED, wait for the bucket to refill, then retry with growing delays and some randomness.
  3. Trim queries by requesting fewer fields and smaller page sizes.
  4. For large exports or catalog-wide updates, switch to bulk operations, which run asynchronously and don't draw down the same bucket per record.

Shopify CLI CI and store automation

In CI, a deploy needs a token in place of the browser login, and routine store jobs such as tagging orders usually belong to the Admin API, not the CLI.

Deploy Shopify CLI from CI without browser

On a build runner there is no browser, and the CLI's interactive login opens one. The documented fix is to export a token as an environment variable, so the CLI never asks who you are.

Creating a project variable

  1. Check out the repository with actions/checkout.
  2. Set up Node with actions/setup-node, using a current LTS release.
  3. Install the CLI with npm install -g @shopify/cli@latest.
  4. Export SHOPIFY_CLI_PARTNERS_TOKEN in the step's env block, reading it from a repository secret such as ${{ secrets.SHOPIFY_CLI_PARTNERS_TOKEN }}.
  5. Run shopify app deploy --force.

The --force flag skips the confirmation prompt, so the job can't hang waiting for a human.

It also means a deploy that removes extensions will go through unasked. Run it only from the branch you trust, and read the first few runs' logs before you stop watching them.

Store tasks that don't need the CLI

If the job is tagging orders, updating inventory or syncing customers, it's a store operation, so it goes through the Admin API. The CLI has no part in it.

For tagging, the GraphQL Admin API has a tagsAdd mutation that takes the order's ID and the tags to add. Your app's access token needs the matching order write scope.

The meter here is query cost. The Admin GraphQL API charges each request in calculated cost points against a bucket that refills over time, and a job that tags thousands of orders in a tight loop will be throttled.

Shopify CLI automation next steps

  1. Create the deploy token and store it as a repository secret, not in the workflow file.
  2. Add the five-step workflow to a branch and run it once against a development app.
  3. List the store jobs people do by hand today, and move each to an Admin API call or a workflow.

What Activepieces does about this

The mistake this article keeps warning about is putting store jobs on the wrong side of the line. Activepieces is built for the Admin API side.

A flow that tags orders or syncs customers runs on a schedule or a trigger, off your laptop, so it needs no CLI login and no browser session.

It is billed at 1 credit per run however many steps the flow has, so the Admin API's rate limits are the only ceiling you plan around. Pace the flow against the cost data in each response.

The core is open source under the MIT licence, so you can self-host it and keep your Admin API tokens in your own infrastructure. The CLI stays where it belongs, in theme and app development.

Frequently asked questions

Is Shopify CLI free to use?

Yes: installing and running Shopify CLI carries no per-command or per-call charge, because it's a development tool and nothing in it is metered.

What you pay for sits elsewhere. A store on a Shopify plan has its own subscription, and anything you build with the CLI runs against the Admin API under that store's rate limits, not a bill per request.

So the cost question is a plan question, and the CLI never adds a line to it.

Does Shopify CLI have its own API key?

No. The CLI doesn't issue a key of its own. You sign in through your Shopify account, and that login's what lets it work with your stores and apps.

The credentials you manage for production belong to the app you build: its client ID and secret, and the Admin API access tokens that app is granted by a store. Treat those as the thing to rotate, scope and store in your secrets manager.

New variable dialog in Activepieces showing name and value fields for storing an API key securely.

If a pipeline needs to run CLI commands unattended, that's a deployment credential for the CLI, which is a different object from the token your app uses to call the API.

Mixing the two up is how a leaked token ends up with more access than the job needed.

Can I use Shopify CLI without a Partner account?

For theme work, often yes, since you can authenticate against a store you have access to, including as a staff member or collaborator, without building apps.

App development is different: creating and deploying an app is tied to a Partner organization, so that's where an account becomes the practical requirement. The deciding question is what you're doing.

Say you only edit and preview a theme on a store you can log in to: that's one job. Registering an app, with its own client ID and distribution, is another.

Check Shopify's current docs for the exact access rules on your setup, because account and permission models change over time.

How do I update Shopify CLI to the latest version?

Use the same package manager you installed it with, so you don't end up with two copies on your path.

If you installed through npm, reinstall the global package at its latest tag; if you used Homebrew, run its upgrade for the Shopify formula. Afterward, run the CLI's version command to confirm which build is active.

In a project, also check the CLI version your app's dependencies pin, since a local copy can differ from the global one, and CI will use whichever version your lockfile or install step resolves.

Pinning that version on purpose is cheaper than debugging a pipeline that updated itself.

Share

Build it

Set this up in minutes.

No code required. Connect your accounts, and Activepieces runs it from there.

Start free Talk to sales