How to list my custom commands only (Laravel)?

Viewed 401

Laravel has php artisan list command. It shows all available commands. I've created a bunch of custom commands in app/Console/Commands folder. I see them in a list of all commands. But is there a way to show ONLY my commands in that list? To hide Laravel built-in commands from that list?

1 Answers

If you type

php artisan list -help

It will output

 The list command lists all commands:
  
    artisan list
  
  You can also display the commands for a specific namespace:
  
    artisan list test

So if your commands are put under your own namespace, eg. petr you can run

php artisan list petr

To only see commands under that namespace.

Related