How to select demo store using CLI commands while creating app

Am working on app creation for the checkout extensibility,

My client have 2 partner account , one is production and another one is for development purpose, Now I have created a development store with the development account.

Am using CLI to create a app with extension , there is a prompt asking me to select the organization to create the app, am selecting my development account ,All is going good,

But while am using the " npm run dev" am getting the error as

Error: Could not find “storename.myshopify.com” in the Organization “organization name” as a valid store.

because am not getting any prompt to select my development store.

How to select my development store.

Am following these two examples.

https://shopify.dev/docs/apps/checkout/validation/client-side-validation?framework=remix&extension=j

https://workshops.shopify.dev/workshops/getting-started-apps#0

But my development store not selected,

Hi Firstideasoft,

This does sound like the Shopify CLI is not recognizing your development store.

What version of the CLI are you using? Can you confirm that you’re running the Shopify CLI commands in the correct directory that contains your app files? If you’re not in the correct directory, the CLI might not be able to find your store.

Hello Liam, Thanks for the reply.

Am using the Current Shopify CLI version: 3.32.0 in my windows system.

Hi again,

If you run the npm run shopify auth logout command and log in again can you select the store you want and then run npm run dev?

1 Like

I use cli version 3.63.1 and when I log out and log back in, it automatically selects the main “production” store instead of giving me a choice of what store to choose. Any ideas?