Skip to main content

Overview

Use the --json flag with envcheck to get machine-readable output. This is especially useful for CI/CD integration, custom tooling, and automated reporting.

Output Structure

The JSON output follows this structure:

Field Descriptions

Root Level Fields

Result Object

Each item in the results array contains:

Summary Object

Example Output

All Checks Passing

With Errors and Warnings

Version Mismatch

Parsing Examples

Using jq (Command Line)

Extract specific information using jq:

Python Script

parse_envcheck.py

Node.js Script

parse-envcheck.js

Go Script

parse_envcheck.go

Validation Status Types

Success

Indicates the validation check passed successfully.

Warning

Indicates a non-critical issue. Warnings do not cause passed to be false.

Error

Indicates a critical issue that causes passed to be false.

Common Patterns

Save to File

Combine with Verbose Mode

Conditional Logic in Scripts

The suggestion field is always null for successful validations and may be null for some errors/warnings if no specific suggestion is available.

Next Steps

CI/CD Integration

Learn how to use JSON output in CI/CD pipelines

Troubleshooting

Common issues and debugging tips