Solved

How can I switch partner organizations in Shopify CLI?

raj02
Shopify Partner
4 0 1

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? 

Accepted Solution (1)
seacar
Shopify Partner
2 1 2

This is an accepted solution.

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.

View solution in original post

Replies 3 (3)

seacar
Shopify Partner
2 1 2

I am having the same issue.  Did you resolve?

seacar
Shopify Partner
2 1 2

This is an accepted solution.

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.

mtbsecomm
Shopify Partner
2 0 0

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