stianst / keycloak-tokens-cli

Apache License 2.0
2 stars 2 forks source link

Add option to configure the default context via CLI #72

Closed thomasdarimont closed 3 weeks ago

thomasdarimont commented 1 month ago

Currently it doesn't seem possible to set the default context via the CLI. Therefore every command must include --context.

stianst commented 1 month ago

It is, but maybe it's a bit counter intuitive:

kct config update --default-context=mycontext
stianst commented 3 weeks ago

Also added a way to set the default context when creating or updating contexts (https://github.com/stianst/keycloak-tokens-cli/issues/77). With that you can just do:

kct config context update -c mycontext --default