---
title: "Create a new console command"
manual: "TYPO3 Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3coreapi:extension-make-console-command@main"
source: "ExtensionArchitecture/Kickstarter/Make/ConsoleCommand.rst"
rendered: "2026-09-22T15:26:06+00:00"
---

# Create a new console command {#extension-make-console-command}

The "Make" extension can be used to create a new [console
command](https://docs.typo3.org/permalink/t3coreapi:symfony-console-commands@main):

**Composer**

```bash
vendor/bin/typo3 make:command
```

**Classic mode installation (no Composer)**

```bash
typo3/sysext/core/bin/typo3 make:command
```

You will be prompted with a list of installed extensions. If your newly created
extension is missing, check if you installed it properly.

-   **`Enter the command name to execute on CLI [myextension:dosomething]:`**

    This name will be used to call the command later on. It should be
    prefixed with your extensions name without special signs. It is considered
    best practise to use the same name as for the controller, in lowercase.

-   **`Should the command be schedulable? (yes/no) [no]:`**

    If you want the command to be available in the backend in module
    **Administration > Scheduler** choose `yes`. If it should be only callable
    from the console, for example if it prompts for input, choose `no`.

## Have a look at the created files {#extension-make-console-command-look-created-files}

The following files will be created or changed:

**Page tree of directory `src/extensions`**

```none
$ tree src/extensions
└── my-test
    ├── Classes
    |   └── Command (*)
    |   |   └── DoSomethingCommand.php (*)
    ├── Configuration
    |   └── Services.yaml (*)
    └── composer.json
```

## Call the new command {#extension-make-console-command-call-new-command}

After a new console command was created you have to delete the cache for it to
be available, then you can call it from the command line:

**Composer**

```bash
vendor/bin/typo3 cache:flush
vendor/bin/typo3 myextension:dosomething
```

**Classic mode installation (no Composer)**

```bash
typo3/sysext/core/bin/typo3 cache:flush
typo3/sysext/core/bin/typo3 myextension:dosomething
```

## Next steps {#extension-make-console-command-next-steps}

You can now follow the [console command tutorial](https://docs.typo3.org/permalink/t3coreapi:console-command-tutorial@main)
and learn how to use arguments, user interaction, etc.
