Apache APISIX CLI
$ apisix Foundation Med RiskThe apisix CLI manages Apache APISIX gateway instances (17.4k+ stars, Apache-2.0), a high-performance cloud-native and AI API gateway built on OpenResty/LuaJIT. It handles config rendering (apisix init), Nginx syntax validation (apisix test), zero-downtime apisix reload, and ships an official SKILL.md.
https://github.com/apache/apisix/releases Use apisix CLI for host-level apisix test and apisix reload operations; use the APISIX Admin REST API or an MCP bridge for dynamic route/upstream CRUD.
At a Glance
- Command
- $ apisix
- FCRS-1.0 Score
- 77/100 (Good)
- Evidence Tier
- Medium Confidence
- CLI vs MCP
- Hybrid (CLI + MCP)
- Reviewed Date
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 clean exit-code checks (apisix test, apisix version), though it is a process-lifecycle wrapper without JSON output.
- Ships
SKILL.md(official_skill) andapisix testsyntax check - No
--jsonoutput flag; process lifecycle scope only
Provides apisix test pre-flight config validation, graceful apisix quit, and zero-downtime apisix reload.
apisix testvalidates generatednginx.confbefore applying changes
Requires OpenResty/LuaJIT runtime packages (or official container/Linux packages) rather than a standalone cross-platform binary; Windows is unsupported natively.
- Depends on OpenResty/LuaJIT runtime on Linux/macOS
Essential local lifecycle manager for initializing etcd, testing configs, and reloading APISIX nodes.
- Handles
init,init_etcd,test,reload, andquitreliably
Top-level Apache Software Foundation project (apache/apisix, 17.4k+ stars, Apache-2.0).
- Apache Software Foundation project with 17.4k+ stars
Extensive official Apache APISIX documentation plus repository SKILL.md.
- Official APISIX CLI docs at apisix.apache.org and
SKILL.md
Security, Auth & Guardrails
Reads gateway and etcd settings from conf/config.yaml (or custom -c <config.yaml> path).
Open-source and free (Apache-2.0).
# Apache APISIX CLI Agent Rules - Always run `apisix test` after editing `conf/config.yaml` before calling `apisix reload` or `apisix restart`. - Prefer `apisix quit` or `apisix reload` over `apisix stop` on live gateways. - Manage routes and AI plugins via the authenticated Admin API rather than editing `nginx.conf` manually.
Agent-Ready Command Recipes
Safe Read-Only Queries
apisix version
Reports the active APISIX runtime version.
apisix test
Checks APISIX and Nginx configuration syntax and exits non-zero on errors.
Controlled Writes & Previews
apisix reload
Re-generates nginx.conf and reloads worker processes without dropping active connections.
Strengths for Agents
- + Pre-flight
apisix testcatches configuration errors beforeapisix reload. - + Ships official
SKILL.mdguidance withinapache/apisix. - + Backed by the Apache Software Foundation (17.4k+ stars, Apache-2.0).
Caveats & Pitfalls
- ! Manages gateway process lifecycle only; routes and upstreams require the Admin REST API.
- ! Depends on OpenResty/LuaJIT and targets Linux/macOS servers (not native Windows).
Official References
Tested Agent Hosts
Follow Ecosystem Links
Related CLIs in Cloud & Infra
View category hub →Opinionated AWS ECS/App Runner CLI with `--json` inspection commands for containerized apps.
IBM Cloud CLI with `--output JSON`, plugin extensions, and `IBMCLOUD_API_KEY` headless login.
Go-based Vultr Cloud CLI with `-o json` output and `VULTR_API_KEY` headless auth.
Qiniu Cloud official storage & CDN CLI with multi-account `~/.qshell/account.json` switching and `SKILL.md`.
CNCF policy engine CLI for evaluating, testing, and formatting Rego policies as JSON.