Shopify CLI - Change associated app

Solved
mannenson
Tourist
9 1 5

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.

0 Likes
pmkelly4444
New Member
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

0 Likes
mannenson
Tourist
9 1 5

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.