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?
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.
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