CLI Flags
naati implements the exact NGINX command-line interface (whether invoked as naati or via the /usr/sbin/nginx drop-in symlink).
Usage
naati [-?hvVtTq] [-s signal] [-p prefix] [-e filename] [-c filename] [-g directives]Options
| Flag | Argument | Description |
|---|---|---|
-?, -h | — | Show help summary and exit |
-v | — | Print version string and exit |
-V | — | Print version, compiler, OpenSSL version, and configure arguments, then exit |
-t | — | Test configuration syntax and semantics, then exit (0 on success, 1 on error) |
-T | — | Test configuration, dump the full resolved configuration (including included files) to stdout, and exit |
-q | — | Suppress non-error messages during configuration testing (-t / -T) |
-s | stop | quit | reopen | reload | Send a control signal to the running master process (using the configured pid file) |
-p | prefix | Override the default prefix directory (used to resolve relative paths) |
-e | filename | Override the startup error log file path (use stderr for container logging) |
-c | filename | Specify an alternate configuration file path |
-g | directives | Set global directives outside the configuration file (e.g. -g "daemon off;") |
Common Examples
# Validate a staging config quietly in CI
naati -t -q -c /etc/nginx/nginx.conf
# Inspect the complete merged config across all included files
naati -T -c /etc/nginx/nginx.conf
# Run in foreground for Docker / systemd
naati -g "daemon off;"
# Trigger zero-downtime config reload
naati -s reload