$ the-wire · showcase
Shopify CLI kills localhost dev flow
By RepoJournal · Filed · About Shopify
The Shopify CLI's `app dev --use-localhost` command is aborting instead of prompting for certificate generation, and a fix is already merged.
The Shopify CLI broke a core developer workflow: running `shopify app dev --use-localhost` now aborts immediately on any app that lacks a localhost certificate, skipping the intended "Generate it now?" prompt [1]. The error message demands files at `.shopify/localhost.pem` and `.shopify/localhost-key.pem`, but the CLI never offers to create them [1]. This effectively blocks local development for apps using HTTPS localhost unless a developer manually generates the certs, a regression that likely shipped with a recent change. The fix, PR #8408 by craigmichaelmartin, restores the prompt flow and has already been merged into the main branch [1][2]. If you're on a recent CLI and develop with `--use-localhost`, pull the latest `main` to unblock yourself. The merge commit is [2] and the behavior fix is [1], so watch for the next release containing it.
Action items
- → Update your Shopify CLI to the latest main or next release to get the localhost cert prompt fix Shopify/cli [immediate]
- → If you're hit by this, manually generate the certs or switch to a non-localhost tunnel as a workaround Shopify/cli [immediate]
References
- [1] Fix `app dev --use-localhost` aborting instead of prompting to generate the localhost certificate ↗ Shopify/cli
- [2] Merge pull request #8408 from Shopify/craig/fix-use-localhost-cert-prompt Shopify/cli