use Illuminate\Console\Command; class MyCommand extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'my:command {arg1} {--option1}'; /** * The console command description. * * @var string */ protected $description = 'My command description.'; /** * Execute the console command. * * @return void */ public function handle() { $name = $this->getName(); // returns 'my:command' $description = $this->getDescription(); // returns 'My command description.' $arguments = $this->getArguments(); // returns an array of argument names and descriptions $options = $this->getOptions(); // returns an array of option names and descriptions } }In the above example, we define a console command `my:command` with an argument `arg1` and an option `--option1`. Inside the `handle` method, we retrieve information about the command using the `Command` info class methods such as `getName`, `getDescription`, `getArguments`, and `getOptions`. The `Illuminate\Console` package is a part of the Laravel framework and provides utilities for building console-based applications in PHP.