● Reference
CLI Reference
Comprehensive reference for all eve-preflight command-line flags and environment variables.
Usage Syntax
$ npx eve-preflight [options]
Command Flags
| Flag | Default | Description |
|---|---|---|
| -p, --port <number> | 3001 | Port on which the preflight reverse proxy will listen for inbound requests. |
| -t, --target <number> | 3000 | Target upstream port where your Eve dev server is running. |
| -h, --help | — | Display command help synopsis, flags, and exit. |
| -v, --version | — | Display the current version number and exit. |
Environment Variables
Flags passed on the command line always take precedence over environment variables:
| Variable | Default | Description |
|---|---|---|
| PREFLIGHT_PORT | 3001 | Custom port for the preflight listening server. Equivalent to -p. |
| EVE_PORT | 3000 | Custom 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