Common Options for vCLI Execution
vCLI Connection Options lists options that are available for all vCLI commands in alphabetical order. The table includes options for use on the command line and variables for use in configuration files.
Important For connections, vCLI supports only the IPv4 protocol, not the IPv6 protocol. You can, however, configure IPv6 on the target host with several of the networking commands.
See To run a vCLI command on Linux and To run a vCLI command on Windows for usage examples.
Used to specify the CA (Certificate Authority) certificate file, in PEM format, to verify the identity of the vCenter Server system or ESXi system to run the command on. Can be used, for example, to prevent man-in-the-middle attacks.
--config <cfg_file_full_path>
--credstore <credstore>
Name of a credential store file. Defaults to <HOME>/.vmware/credstore/vicredentials.xml on Linux and <APPDATA>/VMware/credstore/vicredentials.xml on Windows. Commands for setting up the credential store are included in the vSphere SDK for Perl, which is installed with vCLI. The vSphere SDK for Perl Programming Guide explains how to manage the credential store.
--encoding <encoding>
Specifies the encoding to be used. Several encodings are supported.
cp936 (Simplified Chinese)
shftjis (Japanese)
cp850 (German and French).
You can use --encoding to specify the encoding vCLI should map to when it is run on a foreign language system.
--passthroughauth
If you specify this option, the system uses the Microsoft Windows Security Support Provider Interface (SSPI) for authentication. Trusted users are not prompted for a user name and password. See the Microsoft Web site for a detailed discussion of SSPI.
--passthroughauthpackage <package>
Use this option with --passthroughauth to specify a domain-level authentication protocol to be used by Windows. By default, SSPI uses the Negotiate protocol, which means that client and server try to negotiate a protocol that both support.
If the vCenter Server system to which you are connecting is configured to use a specific protocol, you can specify that protocol using this option.
--password <passwd>
Uses the specified password (used with --username) to log in to the server.
If --server specifies a vCenter Server system, the user name and password apply to that server. If you can log in to the vCenter Server system, you need no additional authentication to run commands on the ESXi hosts that server manages.
If --server specifies an ESXi host, the user name and password apply to that server.
Use the empty string (' ' on Linux and “ “ on Windows) to indicate no password.
If you do not specify a user name and password on the command line, the system prompts you and does not echo your input to the screen.
--portnumber <number>
--protocol <HTTP|HTTPS>
--savesessionfile <file>
--server <server>
If --server points to a vCenter Server system, you use the --vihost option to specify the ESXi host on which you want to run the command. A command is supported for vCenter Server if the --vihost option is defined.
--servicepath <path>
--sessionfile <file>
--url <url>
--username <u_name>
If --server specifies a vCenter Server system, the user name and password apply to that server. If you can log in to the vCenter Server system, you need no additional authentication to run commands on the ESXi hosts that server manages.
If --server specifies an ESXi system, the user name and password apply to that system.
If you do not specify a user name and password on the command line, the system prompts you and does not echo your input to the screen.
--vihost <host>
When you run a vCLI command with the --server option pointing to a vCenter Server system, use --vihost to specify the ESXi host to run the command against.
Note: This option is not supported for each command. If supported, the option is included when you run <cmd> --help.
vCLI Common Options lists options not used as connection options that you can use when you run a vicfg- vCLI command.
--help
--verbose
--version