yireo / magento2-checkout-agreement-commands
Magento 2 module adding CLI commands to list and create checkout agreements
Package info
github.com/yireo/Yireo_CheckoutAgreementCommands
Type:magento2-module
pkg:composer/yireo/magento2-checkout-agreement-commands
Requires
- magento/framework: ^103.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-24 12:27:43 UTC
README
This Magento 2 module adds CLI commands to manage checkout agreements
Installation
Install this package via composer:
composer require yireo/magento2-checkout-agreement-commands
Next, enable this module:
bin/magento module:enable Yireo_CheckoutAgreementCommands
Usage
List all agreements:
bin/magento checkout_agreement:list
Create an agreement:
bin/magento checkout_agreement:create --name="Terms" --content="Our terms" --checkbox_text="I agree"
Options of checkout_agreement:create:
--is_active:1(default) or0--is_html:0(default) or1. HTML content and checkbox texts are rendered unescaped in the checkout, so only use trusted HTML--mode:1(manual, default) or0(automatic)--store_id: the store ID,0(all store views) by default
Breaking change after 1.0.0: --is_html defaults to 0 (it was 1), the options --is_active, --is_html and --mode require a value of 0 or 1, and agreements are created for all store views (instead of only the default store view).