Artisan.page

make:command

Create a new Artisan command

Terminal
php artisan make:command [-f|--force] [--command [COMMAND]] [--test] [--pest] [--phpunit] [--] <name>

Options

commandOptional

The terminal command that will be used to invoke the class

forceOptional

Create the class even if the console command already exists

pestOptional

Generate an accompanying Pest test for the Console command

phpunitOptional

Generate an accompanying PHPUnit test for the Console command

testOptional

Generate an accompanying Test test for the Console command

Arguments

nameRequired

The name of the command