Artisan.page

make:command

Create a new Artisan command

Terminal
php artisan make:command [--command [COMMAND]] [--test] [--pest] [--] <name>

Options

commandOptional

The terminal command that should be assigned

pestOptional

Generate an accompanying Pest test for the Console command

testOptional

Generate an accompanying PHPUnit test for the Console command

Arguments

nameRequired

The name of the command