CLI¶
kstlib.cli exposes the command-line interface as a Typer application. The single public symbol is app, the root Typer instance, which is registered as the kstlib console script in pyproject.toml so it can be invoked directly from the shell.
Tip
See CLI for the user-facing guide with command examples and verbosity flags.
Quick overview¶
kstlib.cli.appis atyper.Typerinstance that aggregates the subcommand groups (auth,config,ops,rapi,secrets) plus the top-levelinfoandversioncommands.The console script entry point
kstlib(defined inpyproject.toml) callsapp()so users can runkstlib --help,kstlib auth login, etc.Subcommand groups are registered via
kstlib.cli.commands.<group>.register_cli(app)at import time.Verbose flags (
-v,-vv,-vvv) and--log-module <name>=<level>are handled in the global callback before any subcommand runs.
Command tree¶
Group |
Purpose |
|---|---|
|
Display package information and logo. |
|
Show the installed |
|
OAuth2 / OIDC flows, token management. |
|
Inspect and resolve configuration files (cascade, includes, env vars). |
|
Session management (tmux / container backends): start, stop, attach, list. |
|
Invoke configured REST endpoints (multi-server, body templates, safeguards). |
|
Resolve / shred secrets via the configured providers (SOPS, KMS, env, keyring). |
Each group is exposed as a Typer subcommand and supports --help for inline discovery.
Module reference¶
Command-line interface module.
This module provides CLI commands using Typer and Rich.