The Wire · Showcase
SHOPIFY CLI CLOSES STORE DELETE REGRESSION, ADDS CONFIRMATION GATES
By RepoJournal · Filed · About Shopify
Alfonso Noriega shipped three connected fixes for the store-auth session reuse regression that broke theme commands for OAuth users, then added irreversible deletion safeguards to prevent accidental store wipes.
The regression from CLI 4.4.0 hit Enterprise Support hard: store-auth sessions were being reused automatically across all theme commands without checking scopes, silencing OAuth users [1]. Noriega stacked three layers to fix it. First, he made session reuse opt-in per theme command [1], blocking the silent adoption that triggered the regression. Second, he added expiry checking [2] because theme commands were reading cached store-auth tokens but never validating their freshness, handing 401s to the Admin API with no refresh handler. Third, he wired verbose logging [3] so support can see exactly why a stored session was adopted, skipped, or rejected without tracing code. In parallel, Noriega shipped the `shopify store delete` command [4] that Business Platform now requests but CLI never had, then immediately wrapped it with confirmation UX [5]: store name required in interactive mode, `--force` required for CI, because deleting a development store is permanent. Ten commits, six PRs, one engineer closing a production hole and hardening a dangerous operation.
One email a day. Unsubscribe in one click.
Keep up with Shopify in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → Test theme dev and store delete commands against your dev stores before shipping Shopify/cli [plan]
- → Document the new --force flag for store delete in automation docs Shopify/cli [plan]
- → Monitor Enterprise Support Slack for OAuth user regressions in next 48 hours Shopify/cli [monitor]
References
- [1] Make store auth session reuse opt-in per theme command ↗ Shopify/cli
- [2] Skip expired store auth sessions in theme commands ↗ Shopify/cli
- [3] Log store auth session decisions in theme commands under --verbose Shopify/cli
- [4] Add store delete command ↗ Shopify/cli
- [5] Require confirmation or --force for store delete ↗ Shopify/cli