CakePHPのcakeコマンドを使うまで。CakePHPのバージョンは1.3.11です。
% vim ~/.zshrc.mine
.zshrc.mine だったり .zshrc だったり .bash_profile だったり .bashrc だったりするかも。
export PATH=/hoge/fuga:$PATH
↓このように変更
export PATH=/hoge/fuga:$PATH:/path/to/cake_install/cake/console
% source ~/.zshrc
(変更の反映)
% cake
Welcome to CakePHP v1.3.11 Console
---------------------------------------------------------------
Current Paths:
-app: console
-working: /path/to/cake_install/cake/console
-root: /path/to/cake_install/cake
-core: /path/to/cake_install
Changing Paths:
your working path should be the same as your application path
to change your path use the '-app' param.
Example: -app relative/path/to/myapp or -app /absolute/path/to/myapp
Available Shells:
acl [CORE] benchmark [DebugKit] schema [CORE]
api [CORE] console [CORE] testsuite [CORE]
bake [CORE] i18n [CORE] whitespace [DebugKit]
To run a command, type 'cake shell_name [args]'
To get help on a specific command, type 'cake shell_name help'