Authentication
You can
authenticate to
by providing a user name and password.
You can provide credentials in
different ways.
- Specify the+usernameoption.dcli> vcenter vm list +username user42 +passwordIf you skip the+passwordoption, you can provide the password in a more secure way when prompted.
- Specify theDCLI_USERNAMEenvironment variable.export DCLI_USERNAME=user42 ./dcli +servervcenter_server_IPcom vmware vcenter vm list
- Provide credentials when prompted by DCLI.You are prompted for credentials if the operation requires authentication.dcli> vcenter vm list Username: user42 Password: Do you want to save credentials in the credstore? (y or n) [y]:
- Save the credentials in the credential store.You must provide the command against which the authentication should be applied../dcli +servervcenter_server_IP+skip +credstore-add +username user42 +password com vmware vcenter vm listAfter you save the user name and password in the credential store, you will not need to provide credentials each time you connect to .