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
Shopify Staff
2731 299 769

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 3 (3)

Liam
Shopify Staff
2731 299 769

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
Shopify Staff
2731 299 769

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