Higress CLI (hgctl)
$ hgctl Official Med Riskhgctl is the official CLI for Higress, Alibaba's Apache-2.0 AI-native API Gateway (9.9k+ stars). It manages Higress control/data plane installation, Kubernetes --context/--kubeconfig targeting, declarative -f profile configs, Wasm plugin scaffolding, and includes an official SKILL.md for AI agents.
https://github.com/higress-group/higress/releases Use hgctl for Higress gateway installation, upgrades, and Wasm plugin lifecycle; pair with Higress Console/MCP management APIs for live AI route mutations.
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
Ships SKILL.md (official_skill) and supports declarative -f YAML/JSON config files and --set overrides, though it lacks a universal --json flag.
- Ships
SKILL.md(official_skill) and-f/--setdeclarative flags
Supports explicit --kubeconfig and --context scoping for Kubernetes deployments, reducing cross-cluster accidents.
- Explicit
--kubeconfigand--contextcluster targeting
Single Go binary via GitHub releases, though full gateway orchestration assumes Docker or Kubernetes access.
- Go binary distributed via
higress-group/higressreleases
Streamlines Higress AI Gateway provisioning, profile inspection, and Wasm plugin workflows.
- Dedicated Higress gateway lifecycle and plugin management
Official higress-group/higress project (9.9k+ stars, Apache-2.0) backed by Alibaba and CNCF ecosystem contributors.
- Official
higress-group/higressrepo (9.9k+ stars, Apache-2.0)
Clear hgctl reference docs on higress.ai alongside bundled SKILL.md guidance.
- Official
hgctldocs on higress.ai andSKILL.md
Security, Auth & Guardrails
Uses local Kubernetes credentials (~/.kube/config or --kubeconfig) and Docker/Helm context for gateway deployment.
Open-source and free (Apache-2.0); runtime infrastructure depends on your Kubernetes or Docker host.
# hgctl Agent Rules - Always pass `--context` or `--kubeconfig` explicitly when targeting Kubernetes clusters. - Inspect `hgctl profile list` and pass `-f config.yaml` rather than mutating production clusters interactively. - Require user approval before running `hgctl uninstall` or upgrading production gateways.
Agent-Ready Command Recipes
Safe Read-Only Queries
hgctl version
Displays client and connected Higress control plane version metadata.
hgctl profile list
Lists available built-in installation profiles (k8s, local-k8s, standalone).
Controlled Writes & Previews
hgctl install --set profile=local-k8s --context kind-higress
Deploys Higress into a scoped local Kind Kubernetes context.
Strengths for Agents
- + Ships official
SKILL.mdagent instructions inhigress-group/higress. - + Clean
--context,--kubeconfig, and-fdeclarative profile support. - + High community adoption (9.9k+ stars) for AI-native API gateway deployments.
Caveats & Pitfalls
- ! Focused on gateway lifecycle and profiles rather than structured
--jsonquery output. - ! Not packaged in Homebrew core; requires release binary or official install script.