keycloak/rest
Michal Vavřík 45710d6b46
Some checks are pending
Warm JS Wireit cache / Warm Wireit cache on main (push) Waiting to run
feat(admin api v2): enhance CLI with 'edit' capability (#48242)
Make users lives easier when they need to update existing client they don't have stored locally.
Instead of doing "get", then modifying the client somewhere and then doing "update", now users can use "edit" command.

How it works (just happy path, read the commit for all the scenarios):

1. `kcadm.sh --v2 client edit test-client`
2. editor is opened (you can configure which one by env vars or using a config command. Interesting: My Fedora Linux seems to have by default set environment variable `EDITOR` to `nano`, so unless I configure the editor explicitly, the `nano` editor is used.
3. use PUT method to apply the user changes
4. print out to user the resulting resource (patched resource)

Simple example:

```bash
mvavrik@fedora:~/sources/keycloak$ kcadm.sh --v2 client edit test
Updating client 'test' ...

{
  "uuid" : "3b60ac14-a83b-459f-95fd-4786f8906ade",
  "clientId" : "test",
  "enabled" : true,
  "protocol" : "openid-connect"
}
```

Closes: https://github.com/keycloak/keycloak/issues/47498

Signed-off-by: Michal Vavřík <michal.vavrik@aol.com>
2026-06-10 13:40:18 +02:00
..
admin-ui-ext fix: enforce user profile attribute permissions on group and organization members endpoints 2026-06-01 16:25:28 -03:00
admin-v2 feat(admin api v2): enhance CLI with 'edit' capability (#48242) 2026-06-10 13:40:18 +02:00
pom.xml Initial Client API v2 impl (#43395) 2025-11-03 14:31:54 +01:00