When trying to run dcli commands, we see errors in the form of:Error: Unable to authenticate user. Please enter the credentials again.Server error: com.vmware.vapi.std.errors.Unauthenticated
This can happen without even prompting for credentials.
This happens because dcli is locked into a stale, corrupt, or restricted credential cache file.
DCLI credentials are cached in "/root/.dcli/.dcli_credstore". Deleting that file will remove the old cache and in next attempt dcli will ask for credentials again.