bin/kc.[sh|bat] start --spi-theme--welcome-theme=custom-theme
The welcome theme is the web page that is served when you request the default page from the Keycloak server. For instance, if your server is deployed on your local machine at port 8080, http://localhost:8080 serves the welcome theme.
By default, the welcome theme is only used to create the initial temporary admin user. Once that user is created, whenever users navigate to the welcome theme, they are redirected to the Admin Console. However, this behavior can be changed and the welcome theme can be completely customized or replaced.
Since the welcome theme is not associated with a realm, it cannot be selected in the admin console like other themes.
To change the welcome theme, create and deploy a new welcome theme as described in Creating a theme. Then, start the Keycloak server using the spi-theme—welcome-theme
option.
bin/kc.[sh|bat] start --spi-theme--welcome-theme=custom-theme