Resources

Shopify CLI 4.0: semver, auto-updates, and migrating off --force

By Teo Comyn · Shopify consultant · CRO, SEO & Liquid · EXPERAISE

About 8 min · Shopify Dev · CLI · Tooling · CI/CD · Shopify 2026 · April 2026 · Updated 2026-04-09

Shopify DevCLIToolingCI/CDShopify 2026
Dev · CLI · 2026
Shopify Dev Platform announcement · Apr 7, 2026

On April 7, 2026, Nick Wesselman (Shopify Dev) published an announcement that looks like plumbing. In practice, it is one of the most important infrastructure changes for Shopify developers since the move from CLI 2 to CLI 3 in 2022. Here is what changes, why it matters, and what you should do before May 2026 if your CI/CD pipelines still rely on the --force flag.

The problem with CLI 3: “romantic” versioning

Since its release in 2022, Shopify CLI 3 has had more than 250 releases. Yet the version number barely moved in a meaningful way: you would go from 3.47.5 to 3.48.0 to 3.84.1, without those numbers really communicating what each release contained. The term used in the official announcement is “romantic” , a nod to romversioning, a deliberately vague system.

Consequence: when there were breaking changes, Shopify hesitated to bump the major version. Developers could not tell from a version number alone whether an update was safe or risky. That was a communication problem, not a flaw in the underlying tech.

The fix: standard semantic versioning

Shopify CLI adopts classic semver , the familiar MAJOR.MINOR.PATCH format from the Node ecosystem. Releases with new features will be minors. Fixes will be patches. Breaking changes will trigger a major bump.

Patch

4.0.1, 4.0.2…

Bugfixes. Safe to update without reading notes: nothing breaks.

Minor

4.1.0, 4.2.0…

Backward-compatible additions. Nothing is removed.

Major

5.0.0…

Breaking change. Read the migration guide before upgrading.

It is the same contract you expect from a serious npm package, and good news for tooling predictability.

The day-to-day game changer: auto-updates

Semver is not an end in itself: it enables automatic updates for minor and patch versions. When a new version is available, the CLI will use your package manager to install the latest, with the exceptions below.

  • No auto-update in CI , GitHub Actions, CircleCI, GitLab: reproducibility preserved.
  • CLI pinned as a local dependency , fixed version in package.json: no forced auto-update.
  • Opt-out via environment variable for teams that want full control.

Until now, updating the CLI was often manual, and versions diverged between developers. Auto-updates on patches and minors reduce that friction without sacrificing CI.

CLI 4.0: first semantic major, and the end of --force

The first major under the new scheme will be Shopify CLI 4.0, planned for May 2026. Main breaking change: removal of the --force flag on shopify app deploy and shopify app release.

If your CI uses --force, this is not cosmetic: address it before the release.

Why --force goes away

The --force flag skipped all interactive confirmations, including those tied to extension deletion, a destructive operation for stores with the app installed. It did not distinguish low-risk operations (add / update) from high-risk ones (delete).

A pipeline with --force that deploys a config where an extension was removed from shopify.app.toml can silently delete the extension in production, merchant data included. Removing --force is a security decision.

Replacements: --allow-updates and --allow-deletes

--allow-updates

Deploys new configs and extensions, updates existing ones. Does not allow deletion.

--allow-deletes

Allows extension deletion, a deliberate choice, for cases that truly need it.

The old --force effectively turned both on at once, with no granularity.

How to migrate your CI/CD pipelines

The migration is straightforward but must happen before May 2026. Common scenarios:

Scenario 1, Deploy without deletion (most common)

Replace --force with --allow-updates:

# Before (change this)
shopify app deploy --force --config production

# After (recommended)
shopify app deploy --allow-updates --config production

Scenario 2, Extension deletion must be possible

Use both flags explicitly if the workflow must be able to remove extensions (app refactor):

shopify app deploy --allow-updates --allow-deletes --config production

Or via environment variables:

SHOPIFY_FLAG_ALLOW_UPDATES=true
SHOPIFY_FLAG_ALLOW_DELETES=true

Shopify recommendation: reserve --allow-deletes for manually triggered workflows, not the automatic pipeline on every push.

Scenario 3, GitHub Actions example

name: Deploy app
on:
  push:
    branches:
      - main
jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
          cache: 'pnpm'
      - name: Install dependencies
        run: pnpm install
      - name: Install Shopify CLI
        run: pnpm install -g @shopify/cli@latest
      - name: Deploy
        env:
          SHOPIFY_CLI_PARTNERS_TOKEN: ${{ secrets.SHOPIFY_CLI_PARTNERS_TOKEN }}
          COMMIT_URL: ${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}
        run: shopify app deploy --config production --allow-updates --source-control-url "$COMMIT_URL"

The --source-control-url flag links a GitHub commit to an app version in the Dev Dashboard, useful for traceability.

What CLI 4.0 changes in the 2026 landscape

Agentic development

Shopify positions the CLI as a core tool for agentic workflows, alongside Dev MCP and AI agents wired into the platform. Predictable CLI behavior (strict semver) is a prerequisite for those tools to rely on it reliably. See also GEO / visibility in AI engines.

UI extension bundles & esbuild metafile

Builds emit an esbuild metafile to analyze what bloats the bundle. Shopify UI extensions are capped at 64 KB: without visibility, optimization was guesswork. Cross-read with Core Web Vitals on Shopify for overall performance.

API 2026-04 and shopify.d.ts

Support for extensions on API 2026-04; shopify app dev can generate a shopify.d.ts file for the global shopify object with TypeScript IntelliSense, fewer runtime errors.

“App-owned” metaobjects

App-owned metaobjects no longer require extra scopes, less friction at install. For SEO / rich results markup, stay aligned with the JSON-LD structured data guide.

Migration checklist before May 2026

  • 1

    Search for --force in scripts. Every occurrence on shopify app deploy or shopify app release must be replaced.

    grep -r "--force" .github/ .circleci/ Makefile package.json
  • 2
    For most pipelines, --allow-updates is enough. Only add --allow-deletes when there is an explicit need.
  • 3
    Test the pipeline on a dev branch before merging to main.
  • 4
    Check UI extension bundle size (64 KB limit) using the esbuild metafile.
  • 5
    Update api_version = "2026-04" in shopify.extension.toml where relevant.

Tip: keep command references in the same doc as your Shopify tooling stack.

What this means for Shopify developers in France

For teams shipping apps or custom themes, and for consultants running deployments for clients, CLI 4.0 clarifies the relationship to updates: patches and minors arrive without manual friction; majors remain an explicit choice, like Next, Vite, or Tailwind.

Removing --force is the most urgent change, and often the quickest to fix: one pass on scripts, then you are done. For an outside eye on pipelines and Shopify consulting, Calendly is still the right format to align.

Summary

What changes

  • Semver MAJOR.MINOR.PATCH
  • Auto-updates minor/patch (not in CI)
  • CLI 4.0: end of --force
  • --allow-updates / --allow-deletes

Before May 2026

  • Replace --force with --allow-updates
  • Test on a dedicated branch
  • API 2026-04 + shopify.d.ts

Outlook

A more predictable CLI, designed for production data safety and agentic workflows, not only for script comfort.

Want a second pair of eyes on your stack?

Apps, themes, CI/CD, one slot is enough to prioritize. Quick reply on WhatsApp.

Official sources & documentation

Useful outbound links (non-affiliate) to go deeper.