We are evaluating Keycloak.x for a new project. Installation is a breeze. However we have difficulties to activate the server (adding the initial admin user) because we don’t have browser access to localhost. Even using ngrok doesn’t work - http://localhost:8080/auth times out. Is there a command line version to add the user (similarly to add-user-keycloak.sh). We played with kcadm.sh but there’s just not enough documentation.
you can use this command to add a new global admin use in the shell:
.../bin/add-user-keycloak.sh -r master -u <username> -p <password> as described in a number of available documentations as well as in the original keycloak manual Link
Thanks @xkey,
much appreciated. We’ve done this with regular keycloak (also I didn’t know the standalone.sh switches - thanks, very helpful).
However now how do I get the same thing working for keycloak.x? There is no add-user-keycloak.sh. The utilities provided are kc.sh, kcadm.sh and kcreg.sh with little documentation.