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

Viewed 875

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?

1 Answers

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

Related