DCLI Option Scopes

DCLI option values are preserved based on their scope.

There are three categories of logical scopes.

  • Interactive session scope
  • Connection session scope
  • Command call scope

You create an interactive session when you enter interactive mode. The interactive session scope keeps the values of all DCLI options you pass to the console. If you do not pass values explicitly, the interactive session scope keeps the default option values. All commands that you run in this session use the DCLI option values preserved in the interactive session scope.

You create a connection session when you connect to a server. If the connection is established while entering interactive mode, both the interactive and connection sessions use the same values for the DCLI options. However, if the connection is established after entering interactive mode and the provided DCLI options are different than the interactive session values, all commands within that connection use the connection session values as defaults for the DCLI options.

The command call scope applies to values that you pass explicitly. Every DCLI option value that you pass explicitly to a command overrides both the connection and interactive session values.

The values of the following DCLI options are preserved in interactive and connection sessions.

  • username
  • password
  • cacert-file
  • credstore-file
  • credstore-add
  • configuration-file
  • more
  • formatter
  • verbose
  • log-level

The skip-server-verification option applies only to the connection session scope. The value of this option is not preserved in the interactive session scope for security reasons.

The values of the following DCLI options are preserved in the interactive session scope only.

  • verbose
  • log-level