You can specify the common options in several ways, discussed in this section.
When you run a vSphere CLI command, authentication happens in the following order of precedence.
If you are working in an environment that is managed by vCenter Single Sign-On, you can specify the vCenter Single Sign-On server and a user name, password, and target host. |
||
Password (--password), session file (--sessionfile), or configuration file (--config) specified on the command line. |
||
Current account information used to establish an SSPI connection. Windows only. |
Using Microsoft Windows Security Support Provider Interface (SSPI) |
|
This order of precedence always applies. That means, for example, that you cannot override an environment variable setting in a configuration file.