Support the ongoing development of Laravel.io →
Installation Configuration

My custom artisan commands are not available on the production server (1and1 shared Linux Host). With the same codebase (I have checked the config entries in app.php and others) it works fine on my development machine.

I have also checked that the command code in app/commands is correct and that it is added in the app/start/artisan.php file

I have done composer dump-autoload and have through dd() statements verfied that both my command and the artisan.php script are executed.

Finally, I have added some prints to vendor/symfony/console/Symfony/Component/Console/Application.php and could see that my command was added in line 412 to the array of commands.

But it still does not show in the php artisan list output and cannot be called.

When I enter php artisan mycommand, I receive:

 [InvalidArgumentException]     
  Command "mycommand" is not defined.  
Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

ralf100 ralf100 Joined 2 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.