1. A method for validating a Command Line Interface(CLI)/configlet on an image, the method comprising: creating a parse graph using a plurality of self-describing data constructs, wherein each of the self-describing data constructs is a parser specific data structure; identifying a plurality of parse chain data constructs in the parse graph; deriving at least one CLI/configlet from the image file based on the plurality of self-describing data constructs; and comparing the at least one CLI/configlet derived from the image file with a plurality of CLIs/configlets, wherein the steps above are implemented by a processor.