I try to register my commands with the deploy plugin console. How do I do this correctly.
Following calls get errors:
Artisan::call('create:command Maki3000.News get:news');
echo Artisan::output(); // e[37;41m COMMAND NOT FOUND e[39;49m The command "create:command" does not exist.
Artisan::create('Maki3000.News get:news');
echo Artisan::output(); // Call to undefined method October\Rain\Foundation\Console\Kernel::create()
Artisan::add(new Maki3000\News\Console\GetNews);
echo Artisan::output(); // Call to undefined method October\Rain\Foundation\Console\Kernel::add()
Artisan::resolve('get:news');
echo Artisan::output(); // Call to undefined method October\Rain\Foundation\Console\Kernel::resolve()
EDIT:
It seems that by deploying my console commands to a shared hosting, they are already registered. When I:
Artisan::call('get:news');
echo Artisan::output();
… the command seems to run.
I guess, there is something wrong with the server cron jobs.