Hi, thanks.
Sorry for being unclear.
I have a file called HelloCommand.php inside src\Command folder.
Inside that file is the following code: https://gist.github.com/mentisy/79097cc825d6f4411263c07799b70755
File structure: http://tinypic.com/r/307xd2c/9
On the terminal, I’ve traversed using cd into my project folder. I run the command bin/cake Hello.
According to the documentation that should output Hello World. But I get the error shown in the top post.
Edit:
The reason I brought up the ToolsShell example, was to show that running Shells work perfectly according to documentation, but I understand Shell are deprecated.
I have this file inside src\Shell: https://gist.github.com/mentisy/6df9031b3027eb81f3c5dd2c83445a1e
When I run bin/cake Tools prolongedCheckouts, I get printed out all the rows I get using $this->Model->find().
So in essence: Shells work, Commands do not.