enkindler CLI
Command-line interface for the Enkindler AI operations dashboard. Manages AKS deployments, Helm platforms, integrations, and cluster resources from your terminal.
Patterned after az and databricks — designed to be ergonomic for both humans and AI agents.
Install
Current release: 0.12.1
pip install --upgrade enkindler
Works on macOS, Linux, and Windows (Python 3.10+).
Quick start
# Sign in: generate a CLI token on the dashboard's /cli-token page, then paste it
enkindler login --token
# Or the browser convenience flow (requires the cluster's Entra loopback redirect URI)
enkindler login
# Verify the session
enkindler whoami
# List your deployments
enkindler deployment list
Namespaces
One workload (app, platform, or CronJob) is allowed per namespace. Workload
create commands (deployment create, helm install, cronjob create) require
--namespace <full-aks-namespace> — the full name, already workspace-prefixed
as <workspace-slug>-<name> (e.g. workspace finance → finance-invoices).
The backend rejects names outside the active workspace.
Pre-flight a namespace before creating (checks both workload occupancy and the admin-managed restricted-namespaces denylist; exits 1 if taken):
enkindler namespace occupancy # occupied namespaces in the workspace
enkindler namespace occupancy --namespace finance-invoices # single-candidate check
Platform admins manage the denylist with
enkindler settings update --set 'RESTRICTED_NAMESPACES=finance-legacy,shared-infra'
(system namespaces like default and kube-system are always restricted).
A workload's namespace is immutable after creation.
Command groups
| Noun | Purpose |
|---|---|
login / logout / whoami / health |
Session and liveness |
commands |
The whole command tree as data (--json), for agents |
config |
Local cluster profiles and the active workspace |
deployment |
AKS app workloads: create/scale/env/rollback/build, ingress migration, Entra identity, API permissions, security groups |
helm / platform |
Helm releases, repos, image builds, privileged release ops |
app |
Run a workload's own API via its source-generated contract; contract activation, review, MCP exposure |
cronjob |
Scheduled workloads |
pipeline |
Build pipelines, runs, API contracts, ACR repository claims |
cluster |
Live Kubernetes introspection (nodes, pods, logs, metrics) |
integration |
ACR, DevOps, GitHub App, Key Vault, MySQL, database providers, Log Analytics |
github |
Template-provisioned repositories via the platform GitHub App |
workspace / namespace |
Workspaces, members, deployment policy, namespace pre-flight |
analytics |
Usage overview, governance, per-workload metrics, Report Center |
model / alerting / user |
Model registry, alert rules and channels, RBAC |
settings |
Platform settings, audit log, auth proxy, monitoring, platform GitHub App |
system / self / privacy |
Readiness preflights, component versions, data-subject erasure |
Commands that call the API take --cluster/-c, --api-url, and --workspace/-w.
login, logout, whoami, and the local config verbs take only the subset they use;
see each command's --help.
Platform-wide reads that span workspaces take --global (platform Admin).
Scripts and AI agents
The CLI is built to be called by agents (Claude, GPT, …) and scripts as well as people.
enkindler --output json deployment list # one JSON document on stdout
export ENKINDLER_OUTPUT=json # …or for every command
enkindler commands --json # every command, argument and option as data
enkindler deployment status invoices-api # names work wherever an id does (needs a workspace)
enkindler pipeline trigger 3 --wait --timeout 600
enkindler cluster pod logs fin-api api-7f9c --follow --for 60
echo "$TOKEN" | enkindler login --token # piped token, never in argv/env
- JSON mode prints the command's result (usually the backend's response body)
and nothing else on stdout; streams (
--follow) are NDJSON. Errors go to stderr as{"error": {"status", "code", "message", "missing_permission", "hint"}}. - Exit codes:
0ok ·1API or business error ·2auth error or invalid usage ·3confirmation required ·4--waittimed out. - Destructive commands take
--yes. Without a terminal they never prompt — they exit 3 so the caller can ask its user, then re-run with--yes.enkindler commands --destructivelists them. - Piped output is never truncated, and help is plain text when stdout isn't a terminal.
skills/enkindler/SKILL.mdis a ready-made agent skill describing the CLI.
Analytics and reports
enkindler analytics overview -w 1 --start 1756684800 --end 1757289600
enkindler analytics governance -w 1
enkindler analytics timeseries app 17 --bucket 1h # JSON series
# Queue a CSV snapshot, poll it, download it
enkindler analytics report create -w 1 --section usage --start 1756684800 --end 1757289600
enkindler analytics report get 9
enkindler analytics report download 9 -o usage.csv
Configuration
Config and the cached JWT live at:
| OS | Path |
|---|---|
| macOS | ~/Library/Application Support/enkindler/config.toml |
| Linux | ~/.config/enkindler/config.toml |
| Windows | %APPDATA%\enkindler\config.toml |
Override the backend URL with --api-url https://... on any command, or set ENKINDLER_API_URL in the environment.
Architecture
- Backend exposes an OpenAPI spec at
/api/openapi.json(the contract). - Commands are hand-written against that spec and call the API through
Client; the spec is snapshotted intests/openapi.snapshot.jsonso tests catch field drift, and itsx-cli-hintsname the command for each operation. - Auth uses backend-issued tokens: sign in to the web dashboard, generate a CLI token at
/cli-token, and paste it at theenkindler login --tokenprompt. A browser OAuth (PKCE) flow is available via plainenkindler loginon clusters whose Azure app registration allows loopback redirects.
Development
python -m venv .venv && source .venv/bin/activate # or `.venv\Scripts\activate` on Windows
pip install -e '.[dev]'
pytest
ruff check .
License
MIT
Metadata
Release files for enkindler 0.12.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| enkindler-0.12.1.tar.gz | 141.6 kB | Without provenance | Details for enkindler-0.12.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| enkindler-0.12.1-py3-none-any.whl | Python 3 | none | any | Details for enkindler-0.12.1-py3-none-any.whl |
Total release size: 289.2 kB
Release files / enkindler-0.12.1.tar.gz
| Download URL | enkindler-0.12.1.tar.gz |
|---|---|
| Size | 141.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04be423af5595463186f8b6e290dbf9721b27a9fd114297e39a8593e517d3a6d
|
|
BLAKE2b-256 checksum How to use checksums |
8fba64f32dd76f074e171ca77ec97e9ca1eef5ecb39d4f133b98133adbcfcff3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / enkindler-0.12.1-py3-none-any.whl
| Download URL | enkindler-0.12.1-py3-none-any.whl |
|---|---|
| Size | 147.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
edbdf5b64071dcd53098402d4bf56bfaaada9a39b975c38d6f44227fb9da488e
|
|
BLAKE2b-256 checksum How to use checksums |
15c449468fd1330b85709f134da474797b405cb0c447b97e6f7adce7f6c633dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for enkindler 0.12.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.