The Wire · Showcase
SHOPIFY CLI 4.2.0 SHIPS WITH THEME PREVIEW DEBUGGING AND ENV FIXES
By RepoJournal · Filed · About Shopify
Shopify CLI 4.2.0 lands with standard events inspector for theme development and fixes a critical regression in the command loader that broke lazy loading.
The headline release is 4.2.0 [1], which adds a new `--standard-events-inspector` flag to `theme preview` [2] as part of Shopify's push to standardize storefront events and actions. This unlocks better debugging for theme developers building with the new standard events spec. The same release fixes app env pull when absolute file paths are used [1] and scopes cached signed upload URLs per app, both critical quality-of-life improvements for app developers managing multiple storefronts. But the real fire was an oclif regression that landed in 4.8.4 [3]: the command loader stopped preserving the ShopifyConfig subclass, breaking lazy command initialization across the entire CLI. The team pinned oclif back to 4.8.3 to restore that behavior. On the build side, an esbuild upgrade to 0.28.1 landed in the main branch but was reverted before the release [4] because it shipped less than a week ago and violates the minimum release age policy. Your developers can upgrade to 4.2.0 with confidence.
Action items
- → Upgrade Shopify CLI to 4.2.0 to get the env file path fix and latest theme debugging features Shopify/cli [plan]
- → If you're on an intermediate oclif version, ensure you're on CLI 4.2.0 to restore lazy command loading Shopify/cli [immediate]
- → Review the new `--standard-events-inspector` flag for theme preview if you're building with Shopify's standard events Shopify/cli [monitor]
References
- [1] 4.2.0 ↗ Shopify/cli
- [2] Add `--standard-events-inspector` flag to `theme preview`. ↗ Shopify/cli
- [3] Pin oclif to 4.8.3 ↗ Shopify/cli
- [4] Revert esbuild upgrade ↗ Shopify/cli
FAQ
- What changed in Shopify on June 17, 2026?
- Shopify CLI 4.2.0 lands with standard events inspector for theme development and fixes a critical regression in the command loader that broke lazy loading.
- What should Shopify teams do about it?
- Upgrade Shopify CLI to 4.2.0 to get the env file path fix and latest theme debugging features • If you're on an intermediate oclif version, ensure you're on CLI 4.2.0 to restore lazy command loading • Review the new `--standard-events-inspector` flag for theme preview if you're building with Shopify's standard events
- Which Shopify repositories shipped on June 17, 2026?
- Shopify/cli