Migrate marketing activity extensions to Shopify CLI
If you have existing marketing activity extensions that were created and are managed through the Partner Dashboard, then you should migrate them to Shopify CLI.
Requirements
Anchor link to section titled "Requirements"- You have the latest version of Shopify CLI.
- Your Partner Dashboard app has been migrated to CLI.
Step 1: Import your Marketing Activity extension locally
Anchor link to section titled "Step 1: Import your Marketing Activity extension locally"- Navigate to your app's directory.
- Run the following command:
- Select
Marketing Activity Extensions
as the type of extension to import. - Select an extension to import from the list.
After completing the prompts, a TOML file is generated by importing your extension's existing configurations.
Step 2: Verify your TOML file
Anchor link to section titled "Step 2: Verify your TOML file"Please review your TOML file to ensure the extension is configured properly. The following is an example of a TOML file that was generated for an imported marketing activity extension:
The following table describes the properties in the TOML file that are specific to a Marketing activity extension:
Property | Description |
---|---|
[extensions] Required |
Settings related to the template. Contains the following properties:
|
[extension.preview_data.types] |
Types that are used with the preview endpoint. The defaults are desktop and mobile. |
[extensions.fields] Required |
The fields used to define the marketing activity form tha's displayed to merchants in the Shopify admin. For a complete reference on the available fields, refer to marketing activities components |
Step 3: Migrate your extension
Anchor link to section titled "Step 3: Migrate your extension"After you've imported the extension, you can migrate your extension by using Shopify CLI's deploy
command.
Use Shopify CLI to deploy your extensions:
- Navigate to your app directory.
- Run the following command to start deploying your extensions:
- Follow the prompts.
When you receive confirmation that the deploy was successful, your extensions have been released.