# Access Keycloak Console via CLI with 2FA on admin account

**URL:** <https://forum.keycloak.org/t/access-keycloak-console-via-cli-with-2fa-on-admin-account/556>\
**Category:** Configuring the server\
**Tags:** admin-console\
**Created:** [November 29, 2019, 7:03am UTC](https://forum.keycloak.org/t/access-keycloak-console-via-cli-with-2fa-on-admin-account/556 "2019-11-29T07:03:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![perthweb](https://avatars.discourse-cdn.com/v4/letter/p/f0a364/32.png) [@perthweb](https://forum.keycloak.org/u/perthweb)\
**Post date:** [November 29, 2019, 7:03am UTC](https://forum.keycloak.org/t/access-keycloak-console-via-cli-with-2fa-on-admin-account/556/1 "2019-11-29T07:03:25Z")

</div>

Has anybody configured the Keycloak Console to be accessed via console command line with 2FA token enabled on the account.

I use automation to build environments. when i try to configure keycloak via cli it gets stuck on the admin account as it requires 2FA to present it self and i am stuck on how to pass a 2FA token to my automation script
