You can predefine a set of variables in the environment where you run DCLI commands so you do not have to pass the options every time you run a command. The following environment variables are supported.

Variable

Description

DCLI_SERVER

Set this variable to pass the server IP address.

Passing the server option on the command line overrides this variable.

DCLI_CACERTFILE

Set this variable to pass the path of a CA certificate file.

Passing the cacert-file option on the command line overrides this variable.

DCLI_USERNAME

Set this variable to pass the user name required for authentication.

Passing the username option on command line overrides this variable.

DCLI_CREDFILE

Set this variable to point to a DCLI credential store file. Default value is ~/.dcli/.dcli_credstore.

Passing the credstore-file option on the command line overrides variable.

DCLI_HISTFILE

Set this variable to point to a DCLI interactive shell history file path. Default value is ~/.dcli/.dcli_history.

DCLI_LOGFILE

Set this variable to specify the log file for DCLI.