php bin/console make:command

Creates a new console command class

Usage

make:command [<name>]

Arguments

name   Choose a command name (e.g. <fg=yellow>app:grumpy-pizza</>) 

Help

The make:command command generates a new command:

php bin/console make:command app:do-something

If the argument is missing, the command will ask for the command name interactively.