To issue tooling requests via the command line client, you first
need to set up the client so that your system can handle the "zf"
command. The command line client, for all intents and purposes, is
.bat file that is provided with
your Zend Framework distribution. In trunk, it can be found here:
As you can see, there are 3 files in the
zf.sh and the
zf.bat are the operating system specific client
zf.sh for the *nix environment, and
zf.bat for the Win32 environment. These client wrappers are
responsible for finding the proper
php.exe, finding the
zf.php, and passing on the client request. The
zf.php is the responsible for handling understanding
your environment, constructing the proper include_path, and passing
what is provided on the command line to the proper library component
Ultimately, you want to ensure two things to make everything work regardless of the operating system you are on:
zf.sh/zf.batis reachable from your system path. This is the ability to call zf from anywhere on your command line, regardless of what your current working directory is.
ZendFramework/libraryis in your include_path.
Note: while the above are the most ideal
requirements, you can simply download Zend Framework and expect it
to work as
./path/to/zf.php some command.