kcusers

command module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 9 Imported by: 0

README

Simple Keycloak user management CLI

Simple CLI used to do some user management tasks on a Keycloak instance.

Installation

Run the following command:

$ go install github.com/ncarlier/kcusers@latest

Or download the binary regarding your architecture:

$ curl -sf https://gobinaries.com/ncarlier/kcusers | sh

Build

make

Geting started

Create the configuration file:

./kcusers init-config -f config.toml

Customize the configuration file:

[log]
level = "info"
format = "text"

[keycloak]
authority = "http://loclahost:8080"
realm = "test"
client_id = "xxx"
client_secret = "yyy"

Play with the CLI

# Get CLI usage
./kcusers -h
# Get user
./kcusers get-user -uid ffcc46cc-f66d-4df8-a623-a6d54ff242df
# Delete users
./kcusers delete-users -f users_to_delete.txt --dry-run --concurent 5

License

The MIT License (MIT)

See LICENSE to see the full text.


Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
all
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL