bin/kc.sh build bin/kc.sh start --optimized
./kc.sh start --optimized
If you specifically need 18.0.2 but can’t access GitHub, try the archive: https://archive.keycloak.org/ – though this is less common. keycloak 18.0.2 download