If like me you’re using Laravel, you will run into the issue of $_SERVER[‘argv’] not being set, however that’s easily fixed in the timer by doing
$_SERVER['argv'] = ['artisan', 'myCommand', '--option=something']; include('artisan');
However if you’re really trying to make it production ready by...