Solved

Shopify CLI - Change associated app

mannenson
Shopify Partner
19 1 10

Is there a way to change the what of my apps the shopify cli associate with my project? 

For example when i run shopify serve i want the project to use another of my apps in the developer account to update the ngrok adress etc.

Is there a way to configure this?

 

Thanks in adnvance.

Accepted Solution (1)

pmkelly4444
Visitor
1 1 0

This is an accepted solution.

Hi @mannenson

If you use the following command:

shopify connect

while inside of the folder you created your app, you will be given the option to change the project that is associated with that app. This command re-creates the project’s .env file with your authentication tokens

View solution in original post

Replies 3 (3)

pmkelly4444
Visitor
1 1 0

This is an accepted solution.

Hi @mannenson

If you use the following command:

shopify connect

while inside of the folder you created your app, you will be given the option to change the project that is associated with that app. This command re-creates the project’s .env file with your authentication tokens

mannenson
Shopify Partner
19 1 10

Thanks!

Want to add if anyone else find this response that you might need to update Shopify CLI for this to work. I was using an older version and the shopify connect command produced errors. But worked after update.

DiscountNinja
Shopify Partner
104 0 66

On CLI 3.0, use the following command: shopify app dev --reset
Documentation: https://shopify.dev/apps/tools/cli/commands#dev

Bart Coppens | Limoni Apps | Building apps for Shopify since 2016