Skip to main content

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.0

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: 0 ok · 1 API or business error · 2 auth error or invalid usage · 3 confirmation required · 4 --wait timed 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 --destructive lists them.
  • Piped output is never truncated, and help is plain text when stdout isn't a terminal.
  • skills/enkindler/SKILL.md is 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 in tests/openapi.snapshot.json so tests catch field drift, and its x-cli-hints name 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 the enkindler login --token prompt. A browser OAuth (PKCE) flow is available via plain enkindler login on 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.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for enkindler 0.12.0
File Size Uploaded Provenance Actions
enkindler-0.12.0.tar.gz 126.4 kB Without provenance Details for enkindler-0.12.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for enkindler 0.12.0
File Interpreter ABI Platform Actions
enkindler-0.12.0-py3-none-any.whl Python 3 none any Details for enkindler-0.12.0-py3-none-any.whl

Total release size: 258.7 kB

Release files / enkindler-0.12.0.tar.gz

Download URL enkindler-0.12.0.tar.gz
Size 126.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7597673e76daaa64c54ee7012dcc9aa5f734c7b912cbb97ff63f882743bd7f27
BLAKE2b-256 checksum
How to use checksums
3e9d50256a4fa7e116170aac9514f7589750aeb97e0dbd994dbe0f9ec7ebbd3b
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.0-py3-none-any.whl

Download URL enkindler-0.12.0-py3-none-any.whl
Size 132.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c6ae17c3d6a47b4a23c75413be93d88ad2aaffb12e75f6ca6d136445d87186b
BLAKE2b-256 checksum
How to use checksums
a51e7461797d6af3cbeffd72ce4f4c07c13fb485aa97ee24a1a4ba46c2dbe44a
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.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page