Directory Compare FCRS-1.0 About /llms.txt

Apache APISIX CLI

$ apisix Foundation Med Risk
Apache Software Foundation · Cloud & Infra · Apache-2.0 · linux / macos · Reviewed:

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

FCRS-1.0 Score
77 /100
Good
Medium Confidence
Zero-Friction Install
https://github.com/apache/apisix/releases
CLI vs MCP Decision Hybrid (CLI + MCP)

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

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
✓ Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 17 / 25

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) and apisix test syntax check
  • No --json output flag; process lifecycle scope only
Trust & Safety 19 / 25

Provides apisix test pre-flight config validation, graceful apisix quit, and zero-downtime apisix reload.

  • apisix test validates generated nginx.conf before applying changes
Setup & Portability 11 / 15

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
Utility & Efficiency 12 / 15

Essential local lifecycle manager for initializing etcd, testing configs, and reloading APISIX nodes.

  • Handles init, init_etcd, test, reload, and quit reliably
Maintenance & Lineage 9 / 10

Top-level Apache Software Foundation project (apache/apisix, 17.4k+ stars, Apache-2.0).

  • Apache Software Foundation project with 17.4k+ stars
Docs & Verifiability 9 / 10

Extensive official Apache APISIX documentation plus repository SKILL.md.

  • Official APISIX CLI docs at apisix.apache.org and SKILL.md

Security, Auth & Guardrails

Auth Modes
Config File
Credential Storage

Reads gateway and etcd settings from conf/config.yaml (or custom -c <config.yaml> path).

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

Open-source and free (Apache-2.0).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Print installed Apache APISIX version
apisix version

Reports the active APISIX runtime version.

Validate generated nginx.conf before reload
apisix test

Checks APISIX and Nginx configuration syntax and exits non-zero on errors.

Controlled Writes & Previews

Gracefully reload APISIX configuration
apisix reload

Re-generates nginx.conf and reloads worker processes without dropping active connections.

Strengths for Agents

  • + Pre-flight apisix test catches configuration errors before apisix reload.
  • + Ships official SKILL.md guidance within apache/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).

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI

Related CLIs in Cloud & Infra

View category hub →
$ copilot

Opinionated AWS ECS/App Runner CLI with `--json` inspection commands for containerized apps.

$ ibmcloud

IBM Cloud CLI with `--output JSON`, plugin extensions, and `IBMCLOUD_API_KEY` headless login.

$ vultr-cli

Go-based Vultr Cloud CLI with `-o json` output and `VULTR_API_KEY` headless auth.

$ qshell

Qiniu Cloud official storage & CDN CLI with multi-account `~/.qshell/account.json` switching and `SKILL.md`.

$ opa

CNCF policy engine CLI for evaluating, testing, and formatting Rego policies as JSON.

cfn-lint 94/100
$ cfn-lint

Official AWS CloudFormation linter with deterministic `-f json` and SARIF validation.