From f5fe3a81b01628f7baf16e39caf77afa649bfb0e Mon Sep 17 00:00:00 2001 From: Karsten Nowak Date: Fri, 26 Jul 2024 09:39:27 +0200 Subject: [PATCH] [DOCS] Add documentation part for command controller Related: #1120 --- Documentation/CommandController.rst | 28 ++++++++++++++++++++++++++++ Documentation/Index.rst | 1 + 2 files changed, 29 insertions(+) create mode 100644 Documentation/CommandController.rst diff --git a/Documentation/CommandController.rst b/Documentation/CommandController.rst new file mode 100644 index 0000000..092cad0 --- /dev/null +++ b/Documentation/CommandController.rst @@ -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 ` + tutorial. diff --git a/Documentation/Index.rst b/Documentation/Index.rst index a53417b..0d0f2bc 100644 --- a/Documentation/Index.rst +++ b/Documentation/Index.rst @@ -47,6 +47,7 @@ continuous integration. TestingFramework Environment DependencyManager + CommandController Running ContinuousIntegration Documentation