Questions and discussions about using the Shopify CLI and Shopify-built libraries.
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.
Solved! Go to the solution
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
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
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.
On CLI 3.0, use the following command: shopify app dev --reset
Documentation: https://shopify.dev/apps/tools/cli/commands#dev