We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

cli tasks

System: CentOS Linux release 7.4.1708 (Core) Phalcon: latest version


 * Class DemoRunV1Task
 * @package Pandora\Cli\Tasks
class DemoRunV1Task extends Task
    public function mainAction()
        var_dump('Demo Run V1 Task');
[[email protected] xxxx]# php cli DemoRunV1
Pandora\Cli\Tasks\Demorunv1Task handler class cannot be loaded
[[email protected] xxxx]# 

why cannot be loaded ?

This question is difficult to answer because you didn't provide a way to initialize CLI tasks and it’s not clear how exactly you registered the CLI dispatcher, CLI router, etc. Please provide a complete example