Deploy and publish an app extension
After you scaffold an extension using the Shopify CLI
scaffold command, you can deploy your extension code to Shopify.
You can use the CLI
deploy command deploy any app extension that you've scaffolded using Shopify CLI. This command deploys all of the extensions that are included in your app at the same time. However, you need to version and publish the extensions individually.
RequirementsAnchor link to section titled "Requirements"
Step 1: Deploy your extension codeAnchor link to section titled "Step 1: Deploy your extension code"
- Navigate to your app directory.
Run one of the following commands:
When you run the
deploycommand, the CLI builds your app, bundles your app extensions, and deploys the extensions to Shopify as a draft. It also walks you through multiple configuration steps. If you've already run
deployfor this app, then some of these steps are skipped.
To learn about the processes that are executed when you run
deploy, refer to the Shopify CLI command reference.
Step 2: Create version and publishAnchor link to section titled "Step 2: Create version and publish"
After you deploy the extension to Shopify, click on the link to navigate to your app in the Partner Dashboard.
Click Create version.
Select Minor or Major version depending on the nature of your code changes.
Minor versions introduce changes that are backwards compatible. Major version changes aren't backwards compatible and might affect users who are currently using your extension.
Click Publish beside the version that you want to publish. Publishing an extension version replaces the current Live version served to shops that have your app installed.
It might take up to five minutes for merchants using the app to be upgraded to the new version.