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.
The list of available commands can be viewed by running the command: '<install path>/zs-setup -h'.
set-license - Set the Zend Server or Zend Server Cluster Manager license key. For more information see Registration.
show-eula - Show the End User License Agreement. For more information see Registration.
accept-eula - Accept the End User License Agreement. For more information see Registration.
add-api-key - Create a new Zend Server API key. For more information see API Keys.
list-api-keys - List all API keys available on the system. For more information see API Keys.
show-api-key - Show information about a specific API key. For more information see API Keys.
revoke-api-key - Revoke and delete an API key. For more information see API Keys.
set-nodes-license - Set the license to be used by Zend Server Cluster Manager cluster members.
create-cluster-db - Create the Zend Server Cluster Manager Monitor MySQL database.
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.
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' |
|
|