Confluent CLI
$ confluent Official High RiskConfluent CLI (confluent) manages Confluent Cloud environments, Kafka clusters, topics, connectors, Schema Registry, and Flink SQL workspaces. Global --output json formatting and explicit environment/cluster context flags make it well suited for agent-driven observability and provisioning.
brew install confluentinc/tap/cli Confluent CLI provides comprehensive control over Kafka clusters, topics, Schema Registry, and Flink compute pools with native -o json output.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Consistent --output json / -o json across commands, plus --environment and --cluster flags for deterministic scripting.
-o jsonand-o yamlsupported broadly across resource commands- Service account and
CONFLUENT_CLOUD_API_KEYenv support
Supports Confluent RBAC service accounts and explicit context flags, though cluster/topic deletion is destructive and incurs billing.
- Service-account RBAC isolation
- Context can be pinned per command via
--environmentand--cluster
Cross-platform native binary via Homebrew tap (confluentinc/tap/cli), tarballs, and FIPS variants.
- Official Homebrew tap and standalone archives
Unifies Kafka topics, Connect, Schema Registry, Flink, and RBAC into a single CLI.
- Broad coverage across Confluent Cloud services
Official Confluent repository (confluentinc/cli) regularly updated by Confluent.
- Official Confluent GitHub organization
Extensive official command reference docs and --help output.
- Official docs at docs.confluent.io/confluent-cli
Security, Auth & Guardrails
Stores session tokens and active context under ~/.confluent/, or reads CONFLUENT_CLOUD_API_KEY / CONFLUENT_CLOUD_API_SECRET and service account credentials.
CLI is free (Confluent Community License); Confluent Cloud clusters and connectors are billed by usage.
# Confluent CLI Agent Rules - Always pass `--environment` and `--cluster` explicitly rather than relying on mutable ambient context. - NEVER delete Kafka clusters, environments, or production topics (`delete`) autonomously. - Use `-o json` on all read commands and restrict service accounts via Confluent RBAC.
Agent-Ready Command Recipes
Safe Read-Only Queries
confluent environment list -o json
Lists accessible Confluent Cloud environments and IDs in JSON.
confluent kafka cluster list --environment <ENV_ID> -o json
Inspects Kafka cluster IDs, cloud providers, and regions in structured JSON.
Controlled Writes & Previews
confluent kafka topic create staging-events --partitions 3 --cluster <CLUSTER_ID> --environment <ENV_ID>
Provisions a 3-partition topic explicitly scoped to a staging cluster and environment.
Strengths for Agents
- + Consistent
-o json/-o yamlformatting across dozens of Confluent Cloud resources. - + Explicit
--environmentand--clusterflags prevent context drift in automated pipelines. - + Supports service-account RBAC and
CONFLUENT_CLOUD_API_KEYheadless auth.
Caveats & Pitfalls
- ! Licensed under the Confluent Community License rather than an OSI-permissive license.
- ! Some commands require interactive
--saveor--no-browserawareness when setting up initial login.