Skip to content

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

FlagArgumentDescription
-?, -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)
-sstop | quit | reopen | reloadSend a control signal to the running master process (using the configured pid file)
-pprefixOverride the default prefix directory (used to resolve relative paths)
-efilenameOverride the startup error log file path (use stderr for container logging)
-cfilenameSpecify an alternate configuration file path
-gdirectivesSet 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