Shopify / cli

Build apps, themes, and hydrogen storefronts for Shopify
https://shopify.dev
MIT License
441 stars 130 forks source link

Can't unlink old store from my Theme configuration #5019

Open MigHerCas opened 11 hours ago

MigHerCas commented 11 hours ago

I've been having this issue for days and it blocks my daily work basis.

I'm not authorized anymore to edit, list, or remove a theme that belongs to an old store to (which I don't have access anymore - managed by a client)

shopify theme info

THEME CONFIGURATION
Store                  {theirID}-2.myshopify.com
Development Theme ID   Not set

TOOLING AND SYSTEM
Shopify CLI    3.71.1 
OS             darwin-arm64
Shell          /bin/zsh
Node version   v23.3.0

This blocks me when running shopify app dev on my current project, which has a theme extension.

Image

Image

Can someone help me or point me where I should be able to ask for help? I need to unlink this specific store from my current cli config.

When I try to uninstalled & installed it again, via homebrew and npm global, it does not work. Pulling other themes is not an issue.

isaacroldan commented 10 hours ago

Hi @MigHerCas, seems like you need to select a different store for testing?

Just run shopify app dev --reset and that will force you to re-link your app and select a new store. Be sure to select the same app and a different store.

Let me know if that works

MigHerCas commented 6 hours ago

Hi @isaacroldan. Thanks for your answer. Yes, indeed, adding --reset allows me to go through but it's not a total reset.

╰─ shopify theme info

THEME CONFIGURATION
Store                  2280cd-2.myshopify.com
Development Theme ID   Not set

Still shows the same store which eventually leads to the same error. I'm trying to understand where is this data stored and how can I remove it permanently.

It also prevents me from using shopify cli as usual:

Image

isaacroldan commented 6 hours ago

Yes, shopify app and shopify theme commands cache their config in different places. You can select a new store for theme commands by using shopify theme dev --store <your_store>

MigHerCas commented 3 hours ago

And can I remove that theme from cache permanently without being authenticated?