A need a plugin for Shell commands.
# create a plugin
bin/cake bake plugin "ShellTest"
Ok, a have a folder src/plugins/ShellTest
Create a file src/plugins/ShellTest/src/Shell/PoleShell.php
namespace ShellTest\Shell;
use Cake\Console\Shell;
class PoleShell extends Shell {
public function main()
{
$this->out('<warning>Fire!!!</warning>');
}
}
and run command
bin/cake "pole"
And I’m getting a Exception message
Exception: Unknown command `cake t34`. Run `cake --help` to get the list of valid commands. in [./my_app_name/vendor/cakephp/cakephp/src/Console/CommandRunner.php, line 346]
Can someone help?