There was a similar question asking "how to create console command in a module?" which contains a good answer on how to add commands to your Yii2 modules.
However, the resulting commands must be in the following format:
./yii module_name/command/sub-command
where command
corresponds with the console Controller name, and sub-command
corresponds with its Action names.
How do we omit the controller name and have it list action names only so that our commands will be in the following format:
./yii module_name/command