How can I switch partner organizations in Shopify CLI?

I have two partner organisations associated with my email account. Currently the dev settings for Shopify cli is associated with one account. I am unable to switch to another account. Tried using

npm run dev -- --reset

but that authenticates my email and automatically logs into the previous partner account. Anyways on how can I change?

1 Like

I am having the same issue. Did you resolve?

To anyone else having this issue just run shopify auth logout in the directory for your app. Then npm run dev it will prompt you to login with another account. Helpful when changing jobs but keeping the same hardware.

4 Likes

Firstly, when running your application in dev mode, you need to preview it on the web browser. Log out of your current account partner in this browser.

Stop this app and re-run with the command “npm run dev – --reset”, Shopify will notify you to login with the account you want to change the org, open the link, and log in. All your app init will follow your new account org