Skip to content
Snippets Groups Projects
config-validation.md 975 B
title: Config Validation
description: How to validate Renovate's configuration.

Config Validation

All renovate distributions contain a standalone validator program (renovate-config-validator) that can be used to validate Renovate's configuration.

The validator program checks files passed as CLI arguments. If no argument is given, all default locations (if files exist) and the RENOVATE_CONFIG_FILE environment variable are checked.

$ npm install --global renovate
added 750 packages, and audited 751 packages in 51s
$ renovate-config-validator
INFO: Validating renovate.json
INFO: Config validated successfully

You can configure a pre-commit hook to validate your configuration automatically. Please check out the renovatebot/pre-commit-hooks repository for more information.