kcadm.sh: add page (#9272)

pull/1/head
Thamaraiselvam (aka) Tham 2022-10-26 18:20:33 +08:00 committed by GitHub
parent 253ea81f94
commit 62ba2c869b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

20
pages/common/kcadm.sh.md Normal file
View File

@ -0,0 +1,20 @@
# kcadm.sh
> Perform administration tasks from the command-line interface (CLI).
> 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 realms`
- Update a realm with JSON config:
`kcadm.sh update realms/{{realm_name}} -f {{path/to/file.json}}`