Dev Tools · 2h ago
New CLI tool clones Keycloak realms on same instance
Keycloak's export feature fails when importing a realm back into the same instance due to UUID collisions. A new open-source Node.js CLI, keycloak-realm-clone, automates the UUID rewrite process. The tool is dependency-free and available via npx.
Meridian48 take
This solves a long-standing pain point for developers managing multiple environments, but the need for such a tool highlights a gap in Keycloak's core export functionality.
Read the full reporting
How to clone a Keycloak realm on the same instance (fixing "duplicate key value violates unique constraint") →
DEV Community
keycloakdeveloper-tools