Writing custom commands

TYPO3 uses the Symfony Console component to define and execute command-line interface (CLI) commands. Custom commands allow extension developers to provide their own functionality for use on the command line or in the TYPO3 scheduler.

For a step-by-step guide, see: Tutorial: Create a console command

Extbase limitations in CLI context

Extbase relies on frontend TypoScript, and features such as request-based TypoScript conditions may not behave as expected.

Instead, use the Query Builder or DataHandler when implementing custom commands.

Backend authentication

When using the DataHandler in a CLI command, backend user authentication is required. For more information, refer to: Using the DataHandler in a Symfony command.