Skip to main content

Global Options

These options can be used with the main envcheck command to control its behavior.

—config, -c

Specify a custom path to the configuration file.

Syntax

Default

If not specified, envcheck looks for .envcheck.yaml in the current directory.

Examples


—verbose, -v

Enable verbose output to see detailed information about the validation process.

Syntax

Description

When enabled, displays additional debugging information including:
  • Loaded configuration details
  • Internal validation states
  • Detailed error traces

Examples

Output Example


—json

Output validation results in JSON format instead of human-readable text.

Syntax

Description

When enabled, outputs structured JSON data that includes:
  • Individual validation results with status, message, and suggestions
  • Summary statistics (errors, warnings, successes)
  • Overall pass/fail status
This is useful for:
  • CI/CD pipeline integration
  • Programmatic processing of results
  • Logging and monitoring systems

Examples

Output Format


—help, -h

Display help information about envcheck commands and options.

Syntax

Examples


—version, -V

Display the version of envcheck.

Syntax

Output Example


Option Combinations

Multiple options can be combined in a single command:
The --json option takes precedence over formatting. When combined with --verbose, verbose output is shown before the JSON output.