Cannot create shopify extension

We currently have a Shopify App and we’re trying to implement Theme App Extension.

I’ve updated my Shopify CLI version via Homebrew and it is currently on 3.46.3. I tried shopify extension create type="THEME_APP_EXTENSION" and shopify app generate extension but both didn’t work.

Here’s a sample screenshot:

Can anyone point me in the right direction on what I need to do?

Hi there Ericute - can you try running npm run shopify app generate extension to create the extension - this should prompt you to be able to select Theme app extension as the extension type. More details in this help doc: https://shopify.dev/docs/apps/online-store/theme-app-extensions/getting-started

Hope this helps!

I figured out the problem. I needed to update my package.json and add the scripts and dependencies in here:

https://shopify.dev/docs/apps/tools/cli/migrate#step-3-add-shopify-cli-as-a-project-dependency

1 Like