5.2. Environment Variables#
FlareInspect reads several environment variables for configuration and credentials. These are useful in CI/CD pipelines and container environments where CLI flags are inconvenient.
Variable |
Description |
Default |
|---|---|---|
|
Cloudflare API token used when |
— |
|
Logging verbosity: |
|
|
Enable Cloudflare SDK debug output ( |
|
|
Alias for |
— |
|
Default directory for assessment output files |
|
|
Suppress banner and non-essential output ( |
) |
|
Skip the startup banner ( |
|
|
Host address for the web dashboard server |
|
|
Port for the web dashboard server |
|
|
API key required for web dashboard authentication when set |
— |
5.2.1. Usage Examples#
Set the API Token via Environment
export CLOUDFLARE_TOKEN=your_cloudflare_api_token
flareinspect assess
Run the Web Dashboard on a Specific Host and Port
HOST=0.0.0.0 PORT=3000 node web/server.js
Enable Debug Logging
CLOUDFLARE_DEBUG=true flareinspect assess --token $CLOUDFLARE_TOKEN
Secure the Dashboard with an API Key
FLAREINSPECT_API_KEY=your-secret-key node web/server.js
All API requests to the dashboard must then include the X-API-Key header with the matching value.