CakePHP のコンソール系のアプリケーションは何かと便利で、しかも驚くほど簡単にできてしまいます。(以下 CakePHP v2.2.1 において) 関連する情報など 公式の解説は一応この辺りにあります Console and Shells Shell Class Info: ファイルの作成とデフォルトのアクション( main メソッド ) まずAppShell を継承する class MyShell を、MyShell.php という名前で APP/Console/Command/MyShell.php として保存。 <?php /** * APP/Console/Command/MyShell.php */ class MyShell extends AppShell { } MyShell::main() を記述すれば最低限のことは出来ます。 class MyShell exten