yaml-validate-cli
v1.0.1
Published
Validate YAML files from the command line with detailed error reporting
Readme
yaml-validate-cli
Validate YAML files from the command line with detailed error reporting. Zero dependencies.
Install
npm install -g yaml-validate-cli
# or use directly
npx yaml-validate-cli config.yamlUsage
# Validate a single YAML file
yaml-validate-cli config.yaml
# Validate multiple files
yaml-validate-cli *.yaml
# Validate all YAML files recursively
yaml-validate-cli --glob '**/*.yml'
# Validate and output parsed JSON
yaml-validate-cli config.yaml --json
# Strict mode: fail on duplicate keys or extra whitespace
yaml-validate-cli config.yaml --strictFeatures
- Clear syntax error messages with line and column numbers
- Supports
.yamland.ymlextensions - Glob pattern support for batch validation
- Outputs parsed JSON for pipeline integration
- CI-friendly exit codes (non-zero on any error)
- Zero external dependencies
