Access Keycloak Console via CLI with 2FA on admin account

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