Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How to select demo store using CLI commands while creating app

Solved

How to select demo store using CLI commands while creating app

firstideasoft
Shopify Partner
9 0 2

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,

Accepted Solution (1)
Liam
Community Manager
3108 344 899

This is an accepted solution.

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

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 4 (4)

Liam
Community Manager
3108 344 899

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.

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

firstideasoft
Shopify Partner
9 0 2

Hello Liam, Thanks for the reply.

 

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

Liam
Community Manager
3108 344 899

This is an accepted solution.

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

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

sauzer77
Shopify Partner
5 0 2

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?