Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

NGINX

$ nginx Official Med Risk
F5 NGINX · Cloud & Infra · BSD-2-Clause · macos / linux / windows

The nginx binary runs and controls the NGINX HTTP reverse proxy, load balancer, and static web server. While nginx -t and -T give reliable exit-code validation and full config dumps, the CLI lacks JSON output, requires root/elevated permissions on standard ports, and emits diagnostics to stderr.

FCRS-1.0 Score
76 /100
Good
High Confidence
Zero-Friction Install
brew install nginx
CLI vs MCP Decision CLI Only

Host-level daemon control binary (-t, -s reload); cannot be operated sensibly over a remote MCP tool.

Agent-Readiness Checklist

Local Probe Evidence
— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md
Version
nginx version: nginx/1.27.4
Startup
5 ms
Exit Codes (help / invalid)
1 / 1
NO_COLOR Clean / Non-TTY Safe
Yes / Safe
Captured --help excerpt
nginx: invalid option: "-"

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 13 / 25

Non-interactive flags (-t, -T, -s reload) with deterministic exit codes, but zero JSON output, single-letter POSIX flags, and human-oriented stderr messages.

  • Deterministic exit code on nginx -t and -T config dump
  • No JSON output; writes status lines to stderr
Trust & Safety 21 / 25

nginx -t tests configuration safely without touching live traffic, though -s stop/reload affects live server processes and often requires sudo.

  • Safe pre-flight validation via nginx -t
  • Daemon signals (-s stop/reload) affect live traffic
Setup & Portability 13 / 15

Ubiquitous via Homebrew, apt/dnf, Docker, and official binaries across macOS, Linux, and Windows (Windows support is limited/legacy).

  • Pre-packaged across virtually all Unix distros and Homebrew
Utility & Efficiency 12 / 15

nginx -T gives agents the complete expanded configuration across conf.d/* includes in one command.

  • Industry-standard reverse proxy with nginx -T full-config dump
Maintenance & Lineage 9 / 10

Official F5 NGINX repository (nginx/nginx) under BSD-2-Clause.

  • Official nginx/nginx codebase under BSD-2-Clause
Docs & Verifiability 8 / 10

Comprehensive directive and CLI switch reference at nginx.org/en/docs/.

  • Official command-line switches and directive reference at nginx.org

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

Uses local filesystem config (nginx.conf), TLS private keys, and optional htpasswd files; no interactive login.

Side Effects
Read-Only Local Write
Cost & Quotas

BSD-2-Clause open-source; completely free (commercial NGINX Plus is a separate product).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# NGINX Agent Rules
- Always run `nginx -t` before executing `nginx -s reload`.
- Remember `nginx -t` writes diagnostic output to `stderr` even on success.
- Never run `nginx -s stop` in production without user approval; prefer `-s reload` after testing.

Agent-Ready Command Recipes

Safe Read-Only Queries

Test NGINX configuration syntax
nginx -t

Validates nginx.conf and included files without starting or reloading the running daemon.

Validate and dump effective merged config
nginx -T

Runs syntax test and prints all included configuration files to stdout for agent inspection.

Controlled Writes & Previews

Gracefully reload running NGINX workers
nginx -s reload

Signals the master process to reload configuration gracefully after nginx -t succeeds.

Strengths for Agents

  • + nginx -t reliably validates config syntax and file paths before reload.
  • + nginx -T dumps the entire resolved configuration tree for quick inspection.
  • + Zero interactive prompts and ubiquitous package availability.

Caveats & Pitfalls

  • ! No JSON output format; diagnostic messages go to stderr.
  • ! Daemon lifecycle operations typically require elevated privileges and have no --dry-run beyond -t.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI