Install Adobe Commerce Webhooks
The following steps apply to both Adobe Commerce on cloud infrastructure and on-premises installations. Cloud customers must perform additional steps to configure the ece-tools
package.
Use the following command to load the webhooks modules:
Copied to your clipboardcomposer require magento/commerce-webhooks=^1.0 --no-updateUpdate the project dependencies.
Copied to your clipboardcomposer updateEnable the new modules:
Copied to your clipboardbin/magento module:enable --all
On-premise installation
Run the following command to initialize the
AdobeCommerceWebhookPlugins
module. This module consists of generated plugins based on a list of subscribed webhooks.Copied to your clipboardbin/magento webhooks:generate:moduleEnable the generated modules:
Copied to your clipboardbin/magento module:enable Magento_AdobeCommerceWebhookPluginsUpgrade your instance:
Copied to your clipboardbin/magento setup:upgradeCompile your instance to generate new classes:
Copied to your clipboardbin/magento setup:di:compile
Cloud configuration
Use the following steps to perform additional configuration for Adobe Commerce on cloud infrastructure:
Add the
app/etc/config.php
file to your working repository:Copied to your clipboardgit add app/etc/config.phpRun the
composer info magento/ece-tools
command to determine your version of ece-tools. If the version is less than2002.1.16
, update to the most recent version.Enable webhooks in the
.magento.env.yaml
file:Copied to your clipboardstage:global:ENABLE_WEBHOOKS: trueCommit and push updated files to the Cloud environment.
Update Adobe Commerce Webhooks
Use the following procedure to update minor or patch versions of Adobe Commerce Webhooks, such as from V1.0.0 to V1.1.0.
Run the following command to update the webhook modules:
Copied to your clipboardcomposer update magento/commerce-webhooks --with-dependenciesFor on-premises installations, run the following command to upgrade Adobe Commerce and clear the cache.
Copied to your clipboardbin/magento setup:upgrade && bin/magento cache:cleanNote: Adobe Commerce on cloud infrastructure upgrades automatically.