Global options for --host and --port

Two global options let you specify host name and port information for the Endeca Server.

--host option

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.

The following example illustrates the --host global option:
endeca-cmd create-ds bikes --host web7.example.com --args --threads 6

The command tells the Endeca Server running on the web7.example.com remote machine (and listening on its default port 7770) to create an Endeca data store named bikes in the default location on that remote machine. All default configuration values (such as the Dgraph's base port and bulk load ports) are assigned by the Endeca Server on the web7.example.com remote machine. The --args flag specifies that the data store's Dgraph process be started with 6 threads.

--port option

The --port option is used whenever the Endeca Server is not running on its default port 7770, regardless of whether the Endeca Server is running locally or on a remote machine. If you do not specify --port, the default port of 7770 is used for the command.

The following example illustrates both global options:
endeca-cmd status-ds 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 store named bikes.