mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-22 04:36:13 +01:00

[DOCS] Add documentation part for command controller

Related: #1120
This commit is contained in:
Karsten Nowak 2024-07-26 09:39:27 +02:00
parent cc64515cd6
commit 277a167621
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,28 @@
.. include:: /Includes.rst.txt
.. _command-controller:
==================
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.
.. code-block:: bash
vendor/bin/typo3 tea:createtestdata 3
.. seealso::
For further details to Console Commands read the
:ref:`Creating a basic command <t3coreapi:console-command-tutorial-create>`
tutorial.

View file

@ -47,6 +47,7 @@ continuous integration.
ReleaseBranchingStrategy ReleaseBranchingStrategy
Environment Environment
DependencyManager DependencyManager
CommandController
Running Running
ContinuousIntegration ContinuousIntegration
Documentation Documentation