I’m running into a frustrating issue when switching between two stores using the shopify theme dev --store flag.
When I switch from one store to another, the theme doesn’t load correctly — it feels like the CLI is still pulling cached data from the previous store I was on rather than the new one.
I’ve tried running shopify theme pull after switching, which has fixed it in the past, but this time it’s not working.
Does anyone else run into this issue?
Thanks
Yeah, the CLI is notorious for holding onto cached store data when you switch contexts. I run into this all the time managing multiple client stores.
Usually, just deleting the hidden .shopify folder in your theme directory fixes it immediately.
If that doesn’t work, try running shopify auth logout and then re-authenticating. It forces the CLI to drop whatever stale session it’s clinging to.
Thank you for this! Deleting the .shopify folder did the trick
Hi @wyattchamberlin6 use the actual developer forums for bugs like this