# Keycloak-config-cli

Keycloak-config-cli is a tool that automates the setup of Keycloak, a popular identity management system. It is open source and self-hosted, installable on Docker Hub and Kubernetes (Helm).

Canonical page: https://ourlocalhost.com/app/6621/keycloak-config-cli

## Description

Keycloak-config-cli is a tool that automates the setup of Keycloak, a popular identity management system. It allows you to import settings—such as users and login rules—from a file, ensuring your security configuration is consistent, easily repeatable, and updated without manual effort.

## Platform availability

Available on 1 of 10 platforms: Helm.

## Health score

78/100 (Good), based on 4 of 5 factors.
- Maintained: 100 (last commit 1 day ago)
- Popular: 62 (1,221 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Security check: 95 (no serious findings, CI, tests)

## Links

- GitHub: https://github.com/adorsys/keycloak-config-cli
- Docker Hub: https://hub.docker.com/r/bitnami/keycloak-config-cli
- Kubernetes (Helm): https://artifacthub.io/packages/helm/jkroepke/keycloak-config-cli
- Official website: https://adorsys.github.io/keycloak-config-cli/
- Documentation: https://adorsys.github.io/keycloak-config-cli/intro/

## Common questions

### Do I need a running Keycloak server before running keycloak-config-cli?

Yes. The CLI needs a reachable Keycloak server, otherwise it cannot connect and will fail.

### Can keycloak-config-cli log in using a registered client identity?

Yes. You can register an app with kcreg.sh, save an initial access token, and create a client so the CLI has a client identity to log in with.

### Which environment variables are used in the documented Docker import?

The example uses KEYCLOAK_URL, KEYCLOAK_USER, KEYCLOAK_PASSWORD, and IMPORT_FILES_LOCATIONS. It also mounts a local config directory to /config.

### Does keycloak-config-cli recreate resources on every import?

No. It applies configuration changes rather than re-creating resources from scratch. A run with nothing to change completes as a no-op.

### Can one set of realm files target multiple environments?

Yes. With import.var-substitution.enabled=true, you can reference environment variables, files, Base64 values, system properties, URLs, and DNS lookups. Recursive substitution is supported.

## Alternatives

- Auth0: You can connect any application (written in any language or on any stack) to Auth0 and define its Connection, the method used to authentica…
- Authelia: Authelia is an open-source authentication and authorization server that provides login, multi-factor authentication, and single sign-on for…
- Better Auth: Better Auth is a framework-agnostic authentication and authorization library for TypeScript that lives inside your application.
- FusionAuth: FusionAuth is a secure tool that manages user logins and registrations for your website or mobile application.
- Keycloak: Keycloak is an open-source Identity and Access Management platform for adding authentication to self-hosted applications.
- SuperTokens MySQL: SuperTokens is an open-source, self-hosted user authentication server that adds secure login and session management to your apps.
- Tinyauth: Tinyauth is a lightweight OpenID Connect authentication and authorization server that adds login and access controls to self-hosted apps be…
- VoidAuth: VoidAuth is an open-source authentication platform for self-hosted applications.
- ZITADEL: Zitadel is an open-source identity and access management platform that provides authentication, single sign-on, multi-factor authentication…
- authentik: Authentik is an open-source identity provider that adds flexible single sign-on, user management, and common sign-in protocol support to se…
- casdoor: Casdoor is an open-source, self-hosted identity and access management platform that centralizes single sign-on, authentication, and authori…
- openam: OpenAM is an open-source access management platform providing authentication, single sign-on (SSO), and authorisation so users log in once…

---
Source: Our Local Host (https://ourlocalhost.com/app/6621/keycloak-config-cli), the self-hosted and open-source app directory.
