'How to add initial admin using script in Keycloak.X Quarkus Preview?

The Wildfly version provies an add-user-keycloak script under bin folder using which we can create initial admin account. How can I do the same with the Quarkus Preview version?



Solution 1:[1]

Use the following environment variables after which you can run the server

export KEYCLOAK_ADMIN=username
export KEYCLOAK_ADMIN_PASSWORD=password

bin/kc.[sh|bat] start

The documentation here can help as well

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Matey Aryeh