mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-09 23:56:14 +01:00
tea/Documentation/CommandController.rst
2024-08-20 08:56:13 +02:00

697 B

Command Controller

The "tea" extension comes with a CommandController that can be used for the automatic creation of test data. It also serves to illustrate how data can be created in the database using a command controller.

You must set a page id as argument. Therefore it's necessary to create an sysfolder before.

You can add option -d to delete already existing data.

vendor/bin/typo3 tea:createtestdata 3

For further details to Console Commands read the Creating a basic command <t3coreapi:console-command-tutorial-create> tutorial.