Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

keycloak

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?

like image 838
Daia Luwang Avatar asked Nov 20 '25 06:11

Daia Luwang


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

like image 166
Matey Aryeh Avatar answered Nov 24 '25 22:11

Matey Aryeh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!