zcli login -i login error
"failed to log in to your account: ."
Hi, trying to use ZCLI and can't seem to login?
The credentials are correct.
Password access is enabled on the zendesk API, along with token access.
Also tried logging in with the token by putting my email/token in the password field but no luck.
Additionally, does ZCLI require the zendesk account owners login details instead of an admin user?
-
Hi Alex,
I can understand that the prompt is a little unclear for using an API token. In order to use an API token to log in, you will need to enter your email address and then '/token'. For example test@demo.com/token and then enter the API token as a password. ZCLI does not require the Zendesk account owner's login details, an admin user will do just fine.
Hope this helps!
-
Many thanks Zach.
Still unsure why the password access wasn't working but got in with the token access.
-
So, if I am using environment variables, I would need to set:
ZENDESK_SUBDOMAIN = mysubdomain
ZENDESK_EMAIL = username@mycompany.com/token
ZENDESK_PASSWORD = api token
Correct? If so, that is exactly what I am doing, and I still get the message "Failed to load secure credentials store: use environment variables to log in. You can user credentials stored in environment variables..."
-
Hi Kent Babb,
If you're using environment variables, omit "/token" from the ZENDESK_EMAIL value. ZCLI will append this suffix for you. I'll update the docs to make this clearer.Hope that helps!
-
Part of my problem was not knowing that if you choose to use the environment variables, you do NOT need to execute the zcli login command. That part was not clear to me.
Please sign in to leave a comment.
6 Comments