Using Nextcloudcmd with Keycloak

I am trying to use nextcloud for syncing files in a app with help of the nextcloudcmd tool. I want to manage identities with keycloak, and use the Nextcloud-Social-Login app. The issue is that i cannot authanticate with a keycloak user when using nextcloudcmd. How can i authanticate in the cli with a user from keycloak.

did you try app password? visit https://<mycloud.tld>/settings/user/security

this is generic approach for clients not capable to use 2FA and login flow…

is there a way i can generate app passwords for the user?

I have no idea… please check occ docs and maybe “impersonate” app