Expand description
Wrapping the Keycloak Admin REST API in a command line tool.
The command tree is generated, not written by hand: src/generate/ turns the
OpenAPI description of the pinned keycloak
crate into one command per operation (scripts/generate.sh does it from the
published tarball), and command builds the clap tree from that data while
the generated dispatch calls the crate method behind it. Shell completion,
the output layer and reports are the remaining scope: see doc/ROADMAP.md.
§Version scheme
keycloak-cli follows the same scheme as the
keycloak crate it will be built on: a
crate version x.y.(z * 100 + v) wraps Keycloak x.y.z with the fix release
v. So 26.8.100 wraps Keycloak 26.8.1, and 26.7.301 would be the second
fix release for Keycloak 26.7.3. version::keycloak_version performs that
conversion, and keycloak-cli --version reports both.
Re-exports§
pub use cli::Cli;pub use cli::Invocation;pub use config::Config;pub use error::Error;
Modules§
- cli
- Command line shape.
- client
- Talking to Keycloak.
- command
- Runtime support for the generated command tree.
- completion
- Shell completion.
- config
- The effective connection configuration.
- error
- Errors returned by the command implementations.
- generate
- Generation of the command tree from the pinned
keycloakcrate. - generated
- Generated by
scripts/generate.shfromkeycloak 26.8.100; do not edit. - live
- Live values for completion, bounded by a timeout and a cache.
- live_
sources - Live completion values, read from the API with this terminal’s session.
- report
- Rendering of responses.
- report_
command - The
reportdocument: users, events and sessions with ASCII charts. - session
- Terminal sessions: one
loginper shell, shared with completion. - update
self-update: replace this binary with a published release.- version
- The crate version encodes the Keycloak version it wraps.
Functions§
- run
- Runs the parsed command line.