This is a beta release of documentation for Magento 2.4, published for previewing soon-to-be-released functionality. Content in this version is subject to change. Links to the v2.4 code base may not properly resolve until the code is officially released.

Add CLI commands

Your module can optionally use Magento 2’s Symfony-based command-line interface (CLI) to provide commands for users to interact with. To use the CLI, see the following topics: