Use the config validate command to perform a quick syntactic validation of your configuration file.

    hermes config validate

    validate the relayer configuration


Validate the default config file, the path inferred automatically to be $HOME/.hermes/config.toml.

hermes config validate
hermes config validate
Jul 12 16:31:07.017  INFO using default configuration from '$HOME/.hermes/config.toml'
Success: "validation passed successfully"

Validate a config file at an arbitrary location:

hermes --config ./config.toml config validate

This one fails validation because we mistakenly added two separate sections for the same chain ibc-1:

hermes --config ./config.toml config validate
error: hermes fatal error: config error: config file has duplicate entry for the chain 'ibc-1'