Authentication

You can authenticate to
by providing a user name and password.
You can provide credentials in different ways.
  • Specify the
    +username
    option.
    dcli> vcenter vm list +username user42 +password
    If you skip the
    +password
    option, you can provide the password in a more secure way when prompted.
  • Specify the
    DCLI_USERNAME
    environment variable.
    export DCLI_USERNAME=user42 ./dcli +server
    vcenter_server_IP
    com 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 +server
    vcenter_server_IP
    +skip +credstore-add +username user42 +password com vmware vcenter vm list
    After you save the user name and password in the credential store, you will not need to provide credentials each time you connect to
    .