zcli login -i login error


  • Zach Anthony
    Zendesk Product Manager

    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!

  • Alex

    Many thanks Zach.

    Still unsure why the password access wasn't working but got in with the token access.

  • Kent Babb

    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..."

  • James Rodewig
    Zendesk Documentation Team

    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!

  • Kent Babb

    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.

  • James Rodewig
    Zendesk Documentation Team

    Thanks for the feedback, Kent.

    We've made some recent changes to the docs to make this more clear:

    • You can authenticate ZCLI using one method (profiles or environment variables): docs
    • Order of precedence for profiles vs environment variables: docs

Please sign in to leave a comment.

Powered by Zendesk