Reference

CLI Reference

Comprehensive reference for all eve-preflight command-line flags and environment variables.

Usage Syntax

$ npx eve-preflight [options]

Command Flags

FlagDefaultDescription
-p, --port <number>3001Port on which the preflight reverse proxy will listen for inbound requests.
-t, --target <number>3000Target upstream port where your Eve dev server is running.
-h, --helpDisplay command help synopsis, flags, and exit.
-v, --versionDisplay the current version number and exit.

Environment Variables

Flags passed on the command line always take precedence over environment variables:

VariableDefaultDescription
PREFLIGHT_PORT3001Custom port for the preflight listening server. Equivalent to -p.
EVE_PORT3000Custom upstream port for the Eve dev server. Equivalent to -t.

Example Usage

# Specify custom proxy and upstream ports:
$ npx eve-preflight -p 8080 -t 3000
# Or via environment variables:
$ PREFLIGHT_PORT=8080 npx eve-preflight