When you run a DCLI command, authentication happens in order of precedence, which always applies. That means, for example, that you can override an environment variable setting from the command line.

If you are authenticating through vCenter Single Sign-On, the order of precedence is preserved.

The following table shows the DCLI authentication precedence order.

Authentication

Description

Command line

The user name and password specified on the command line take precedence, even if a credential store exists.

Environment variable

A user name specified in an environment variable takes precedence over user names in the credential store, but not over the command line.

Credential store

The user name and password retrieved from the credential store. A custom credential store file at a non-default location has precedence over a file at the default location.