The Wire · Showcase
CLI NOW OWNS E2E STORE LIFECYCLE, HYDROGEN FIXES HTTP/2 HANDSHAKE
By RepoJournal · Filed · About Shopify
The CLI commands for creating and deleting development stores are live in E2E tests, cutting out Playwright provisioning entirely, while Hydrogen's local development stack now handles HTTP/2 requests without choking on pseudo-headers.
Shopify/cli merged the switch to native CLI store operations for end-to-end testing [1], replacing Playwright provisioning with `shopify store create dev --json` and cleanup with `shopify store delete --force --json`. This simplifies the test harness and lets the CLI prove its own store lifecycle operations under real conditions. On the Hydrogen side, MiniOxygen now correctly handles HTTP/2 requests by falling back to the `:authority` pseudo-header when `host` is absent [2], then exposes it as a normalized `host` header so WHATWG Headers construction doesn't fail. That fix matters because Vite HTTPS already negotiates HTTP/2, so local development was throwing "Request must contain a host header" errors. Hydrogen also shipped a new `--javascript-origin` flag for the `customer-account-push` command [2], letting you specify a portless origin for the Customer Account API while keeping your dev callback URL portful. Theme configuration test coverage landed as well, adding unit tests for `getHostTheme`, `setHostTheme`, and related helpers [3].
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
- → Verify E2E tests use new CLI store commands in your next test run Shopify/cli [plan]
- → Check Hydrogen local dev stack for HTTP/2 compatibility if using Vite HTTPS Shopify/hydrogen [monitor]
- → Update Customer Account API origin config if you need portless JavaScript origin Shopify/hydrogen [plan]
References
- [1] Use CLI commands for E2E store lifecycle ↗ Shopify/cli
- [2] feat: javascript origin flag in `customer-account-push` hydrogen CLI command ↗ Shopify/hydrogen
- [3] [Tests] Add coverage for theme configuration helpers ↗ Shopify/cli