Update Theme-app-extension code

I’ve created a PHP app where I use the theme-app extension to push code changes to the front end. Recently, I made modifications to a file located in the ‘Theme-App-Extension’ folder, specifically in ‘assets/filename.js.’ However, when I attempted to push these changes using the ‘Shopify extension push’ command, I encountered an error, stating that ‘Command extension push was not found.’

In an attempt to resolve the issue, I also tried using the ‘npm run deploy’ command in React, which executed successfully. Unfortunately, the changes I made did not reflect on the store’s front-end page.

I would greatly appreciate any assistance in addressing this issue. What steps should I take to ensure that the changes are properly displayed on the front-end of the store?

Hi Suraj_,

Are you using the Shopify CLI 3.X? The shopify extension push command is only for the older 2.X version of the CLI. You will likely need to run shopify app deploy to build the app and deploy all of your extensions in your app to Shopify.

Hope this helps,