While CakePHP is a framework aimed at developing web applications, it also exposes a feature-rich console API to build shell-based scripts. These can be used for anything, from filesystem tasks, to database- and process-intensive operations.
In this chapter, we'll outline some common use cases when using shell tasks, as well as some built-in shell commands that come with the framework.