snippetbashTip
kcadm.sh — Perform administration tasks. More information: <https://www.keycloak.org/docs/latest/server_admin/#
Viewed 0 times
administrationkcadm.shcommandperformcliinformationmoretasks
Problem
How to use the
kcadm.sh command: Perform administration tasks. More information: <https://www.keycloak.org/docs/latest/server_admin/#admin-cli>.Solution
kcadm.sh — Perform administration tasks. More information: <https://www.keycloak.org/docs/latest/server_admin/#admin-cli>.Start an authenticated session:
kcadm.sh config credentials --server {{host}} --realm {{realm_name}} --user {{username}} --password {{password}}Create a user:
kcadm.sh create users -s username={{username}} -r {{realm_name}}List all realms:
kcadm.sh get realmsUpdate a realm with JSON config:
kcadm.sh update realms/{{realm_name}} -f {{path/to/file.json}}Code Snippets
Start an authenticated session
kcadm.sh config credentials --server {{host}} --realm {{realm_name}} --user {{username}} --password {{password}}Create a user
kcadm.sh create users -s username={{username}} -r {{realm_name}}List all realms
kcadm.sh get realmsUpdate a realm with JSON config
kcadm.sh update realms/{{realm_name}} -f {{path/to/file.json}}Context
tldr-pages: common/kcadm.sh
Revisions (0)
No revisions yet.