CLI Tools

CLI Tools is a utility that allows easy automation for Zend Server and Zend Server Cluster Manager on Mac or Linux. Using the command line or an automated script, you can perform common setup operations, as well as Web API operations.

 

The CLI Tools are controlled via two wrapper scripts, each one exposing a specific set of commands:

Both zs-manage and zs-setup are located in '<install path>/[zs-manage] or [zs-setup]'.

The CLI Tools code is written in PHP and is located at '<install_path>/share/zs-cli-tools'.  

Note:

Some commands are not applicable to Zend Server Community Edition.

zs-setup Commands

The list of available commands can be viewed by running the command: '<install path>/zs-setup -h'.

zs-manage Commands

The list of available commands can be viewed by running the command: '<install path>/zs-manage -h'. All commands are also available in the Web API Reference Guide.

 

Usage Example

Example:

Request

$ zs-manage cluster-add-server -N kika -K 0123456789012345678901234567890123456789012345678901234567890123 -n deb62 -u http://10.1.9.24:10081/ZendServer -p 1234

Response

The response will be:

7    deb62    http://10.1.9.24:10081/ZendServer    OK'