---
title: "Command Controller"
manual: "TYPO3 EXT:tea"
version: "main"
permalink: "https://docs.typo3.org/permalink/ttn/tea:command-controller@main"
source: "TechnicalBackground/CommandController.rst"
modified: "2026-09-17T10:16:32+00:00"
---

# 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.

```bash
vendor/bin/typo3 tea:create-test-data 3
```

> [!NOTE]
> **See also**
>
> For further details to Console Commands read the
> [Creating a basic command](https://docs.typo3.org/m/typo3/reference-coreapi/14.3/en-us/ApiOverview/CommandControllers/Tutorial.html#console-command-tutorial-create)
> tutorial.
