Questions and discussions about using the Shopify CLI and Shopify-built libraries.
Hi guys,
I was exploring the theme app extension and was able to create and push to my app using the CLI but I somehow lost the .env file which has the EXTENSION_UUID. I understand that the CLI uses this to be able to identify the app and push updates to the correct extension. Now, I can neither push, nor register my extension as there could be only 1 theme app extension registered in the app.
My question is, does anyone know how to recover the UUID of the registered extension? Seems like this should be the end of this extension for the app
Thanks for your help
Solved! Go to the solution
This is an accepted solution.
To anyone who faced this, you can swap out the
EXTENSION_UUID=
EXTENSION_ID=
in the .env file
the EXTENSION_ID= will get the value you can get from the partner dashboard by navigating to the extension in the app
This is an accepted solution.
To anyone who faced this, you can swap out the
EXTENSION_UUID=
EXTENSION_ID=
in the .env file
the EXTENSION_ID= will get the value you can get from the partner dashboard by navigating to the extension in the app
Where in the partners dashboard can I find that? Under App -> Extensions (where you can publish the extension) is no UUID anywhere.
Save your current .env before these operations.
If you still need EXTENSION_UUID (ex. for build deep link) you can use this command in your extension folder
shopify extension connect
pick proper app and extension, and file .env with EXTENSION_UUID will be fetched.
If anyone will face this problem with Shopify CLI 3, just use SHOPIFY_API_KEY=... value you can get from Client credentials tab of app's details in your partner dashboard. Remove extension related lines (called "......_ID" in our case) if you've lost them for any reason. When you will run npm run deploy next time, you will log in again and missing values will be auto-fetched.
Hey @bloodyalbatross - it looks like @ArchitechproOU may be referring to the ID of the extension itself here. You would have to deploy the extension code to Shopify first before the info would appear, but once that's done you should see it like this within your Partner dashboard by clicking on the deployed extension within the dashboard:
Hope this helps!
Al | Shopify Developer Support
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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
If I click on the extension I see this:
How do I get to the screen in your screenshot?