php artisan make:command

Create a new Artisan command

Usage

make:command [-f|--force] [--command [COMMAND]] [--test] [--pest] [--] <name>

Arguments

name   The name of the command 

Options

-f,         --force            Create the class even if the console command already exists 
            --command          The terminal command that should be assigned 
            --test             Generate an accompanying PHPUnit test for the Console command 
            --pest             Generate an accompanying Pest test for the Console command 
-h,         --help             Display help for the given command. When no command is given display help for the <info>list</info> command 
-q,         --quiet            Do not output any message 
-v|vv|vvv,  --verbose          Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug 
-V,         --version          Display this application version 
            --ansi             Force (or disable --no-ansi) ANSI output 
-n,         --no-interaction   Do not ask any interactive question 
            --env              The environment the command should run under