make:command

Create a new Artisan command

Options

  • command - The terminal command that should be assigned Optional
  • force - Create the class even if the console command already exists Optional
  • pest - Generate an accompanying Pest test for the Console command Optional
  • test - Generate an accompanying PHPUnit test for the Console command Optional

Arguments

  • name - The name of the command Required
php artisan make:command [-f|--force] [--command [COMMAND]] [--test] [--pest] [--] <name>