shopifyshopify-appshopify-apishopify-template

How to migrate shopify theme app extension from cli 2.0 to cli 3.0?


I'm asking this because I created an app that's not a shopify cli app template. As a result, in cli 3.0, they deprecated the cli2.0 command for the theme app extension. It is not understandable how to use new commands according to the shopify documentation.

like cli 2.0 have these steps to create theme app extension.(take a look below image) enter image description here

but in cli 3.0 description they removed all commands so now big question how to migrate or create theme app extension without using cli app templete.

I'm trying to explain how to migrate or create theme app extension in shopify without using shopify app templete. so expecting to get an answer around this.


Solution

  • I found it. Follow below steps:

    1. Create package.json file at root of your project directory and copy content from shopify doc and paste

    2. npm install

    3. npm run shopify app generate extension

    4. npm run deploy