Validation of NWB files is available through pynwb. See the PyNWB documentation for more information.
A simple interface for validating HDMF structured data through the command line like for PyNWB files is not yet
implemented. If you would like this functionality to be available through hdmf, then please upvote