Faster baking with bake
Some time ago some shortcuts were added to the bake script to make it possible to skip all those questions the bake script usually asks:
cake bake model User cake bake controller Users scaffold cake bake view Users
For more details on those shortcuts call the bake script with the help parameter like:
cake bake model help
or have a look at Faster baking of controllers with the bake shell script and Baking views.
Recently, a new shortcut was added which makes the aforementioned shortcuts (almost) obsolete. With the “all” parameter it is now possible to bake with one command a model plus the corresponding controller with its views:
cake bake all // asks you for the model name cake bake all User
This feature is currently only available in the development branch, but the next release is probably not that far away…
Happy baking :)




Ask and you shall receive. I love CakePHP, gets better and better every day, literally.
Thanks for the update.
[...] cakebaker » Faster baking with bake With the “all” parameter it is now possible to bake with one command a model plus the corresponding controller with its views. [...]
great find! thanks for the post. I was starting to hate how long it took me to bake 50 models and their controllers.
@rtconner: But even with this new feature you still have to execute the bake command 50 times in your case ;-) Maybe we will see a true “bake all” command in the future which bakes all models, controllers and views with one single command.
[...] - Faster baking with bake http://www.littlehart.net - Screencast: Interactive Console for [...]