Working with CLI Tools
This procedure describes how to use CLI Tools to perform common setup operations, as well as Web API operations, using the example of launching Zend Server (bootstrap-single-server). The specified workflow is recommended for all supported actions.
|
To use CLI Tools:
/usr/local/zend/bin/zs-manage --help
/usr/local/zend/bin/zs-manage bootstrap-single-server --help
/usr/local/zend/bin/zs-manage bootstrap-single-server -p <YourPassword> -o <YourOrderNumber> -l <YourLicenseKey> -a True -u <DefaultApplicationURL> -U <ServerURL> |
|
Important! After successfully entering a CLI command for launching Zend Server, you are provided with a WebAPI key that consists of a key name and key hash. You will need these details for additional commands. |
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.
Note:
See Resetting Passwords for information on a separate CLI utility for externally resetting passwords.
CLI Commmand | Description |
Add a Web API key. |
|
List Web API keys. |
|
Deploy an application. |
|
Show the status of applications on a server/cluster. By default will return status on all applications. |
|
Remove an application. |
|
Rollback an application. |
|
Synchronize an application on a server, a set of servers or a cluster. |
|
Update an application. |
|
Bootstrap a server for standalone usage in production or development environment. |
|
Add a new (unbootstrapped) Zend server to a cluster. |
|
Disable a Zend Server cluster member. |
|
Enable a disabled Zend Server cluster member. |
|
List servers in the cluster and show their status. |
|
Reconfigure a cluster member to match the cluster's profile. |
|
Remove a server from a cluster. |
|
Apply the configuration changes on a given server to the blueprint. In a clustered environment, this will apply the changes to all serv ers in the cluster. This should be done if you manually edited .conf files. |
|
extension-off |
Disable a PHP extension. |
Enable a PHP extension. |
|
Deploy a library. |
|
Get the library's status. |
|
Remove a library with all its versions. |
|
Remove a library version. |
|
Restart the PHP and components that need to be restar ted on the server, or on all the servers in the cluster - in the case of a clustered environment. |
|
restart-php |
Restart the PHP and components that need to be restar ted on the server, or on all the servers in the cluster - in the case of a clustered environment. |
Add a new (bootstrapped) Zend server to a cluster. Connects directly to MySQL. |
|
Change directive value. |
|
Get information about the remote Zend Server system. |
|
Add a new vhost to Zend Server's Web server. |
|
Add a new secure SSL vhost to Zend Server's Web server. |
|
Get the list of virtual hosts currently used by the Web server and information about each vhost. |
|
Remove a vhost by its ID. |