This procedure describes how to use CLI Tools to perform common setup operations, as well as WebAPI operations, using the example of launching Zend Server (bootstrap-single-server). The specified workflow is recommended for all supported actions.
Note:
CLI Tools can be used by Zend Server on Linux, Mac and IBMi.
To better understand the procedures described in this topic, watch this video:
|
|
|
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. |
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 |
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. |
|
config-export |
Export Zend Server configuration to a snapshot file. |
config-import |
Import Zend Server configuration from a snapshot file. |
Deploy a library. |
|
Get the library's status. |
|
Remove a library with all its versions. |
|
Remove a library version. |
|
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. |
|
Get information about the remote Zend Server system. |
|
|
|
Related Links: |
|
|
© 1999-2013 Zend Technologies, Ltd. All rights reserved.