The Bake Command Plugin
Latest commit 7356656 Aug 21, 2018

Bake plugin for CakePHP

Build Status Coverage Status License

This project provides the code generation functionality for CakePHP. Through a suite of CLI tools, you can quickly and easily generate code for your application.


You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require --dev cakephp/bake


You can find the documentation for bake on the cookbook.


After installing dependencies with composer you can run tests with phpunit:


If your changes require changing the templates that bake uses, you can save time updating tests, by enabling bake's 'overwrite fixture feature'. This will let you re-generate the expected output files without having to manually edit each one: