command:target

addTarget

addTarget --target= [--zsurl=] --zskey= --zssecret= [--zsversion=] [--http=]

If you do not want to always pass the zskey zssecret and zsurl, execute this command first.

  • --target
    The unique name of the target
  • --zsurl
    The Zend Server URL. If not specified then it will be http://localhost:10081
  • --zskey
    The name of the API key
  • --zssecret
    The hash of the API key
  • --http
    Optional array with additional HTTP client parameters.

    Example:

    --http="timeout=60&sslverifypeer=0"

updateTarget

updateTarget --target= [--zsurl=] [--zskey=] [--zssecret=] [--zsversion=] [--http=]

Update the settings of existing target.

  • --target
    The unique name of the target
  • --zsurl
    The Zend Server URL. If not specified then it will be http://localhost:10081
  • --zskey
    The name of the API key
  • --zssecret
    The hash of the API key
  • --http
    Optional array with additional HTTP client parameters.

    Example: --http="timeout=60&sslverifypeer=0"

removeTarget

removeTarget --target=

Remove a target from the list. If the target does not exist the shell exit code is 1.

  • --target
    The unique name of the target

removeAllTargets

removeAllTargets

Remove all defined targets.

listTargets

listTargets

List all defined targets.

targetFileLocation

targetFileLocation

Show the location of the file used to save the target information.