Three global options allow you to specify the host name, port number, and context root information for the Endeca Server.
You use the --host option when you want to run a command on an Endeca Server that is running on a remote machine. The --host argument can be either the full name of the remote machine or its IP address.
endeca-cmd create-dd bikes --host web7.example.com
The command tells the Endeca Server running on the web7.example.com remote machine (and listening on its default port) to create an Endeca data domain named bikes in the default location on that remote machine.
The --port option is used whenever the Endeca Server is not running on its default port, regardless of whether the Endeca Server is running locally or on a remote machine. If you do not specify --port, the default port is used for the command.
endeca-cmd get-dd bikes --host web7.example.com --port 9090
The command tells the Endeca Server running on the web7.example.com remote machine (and listening on a non-default port 9090) to return the status of the Endeca data domain named bikes.
The Endeca Server application uses /endeca-server as the default name of its context root when running in WebLogic Server. The --root option is used to specify this context-root name. If you do not specify --port, the default /endeca-server context root is used for the command.