phpcakephpcakephp-4.xcakephp-bake

Error: "MyPlugin" is not a valid value for --theme


Even though my plugin seems to be loaded, baking doesn't seem to be able to find it.

Command used:

root@f2bdce131cdd:/var/www/html/MyApp# bin/cake bake model test_bake_commands -t MyPlugin
Error: "MyPlugin" is not a valid value for --theme. Please use one of "Bake, Migrations"

It seems to be loaded too:

root@f2bdce131cdd:/var/www/html/MyApp# bin/cake plugin loaded
AuditStash
Bake
Cake/TwigView
DebugKit
Migrations
Muffin/Footprint
MyPlugin

Solution

  • Solution: renamed MyPlugin/templates/Bake to MyPlugin/templates/bake.