1. A method, comprising the machine-implemented steps of: receiving one or more command line interface commands associated with a network device; creating and storing a knowledge base comprising a representation of a syntax and semantics of the commands; receiving from the knowledge base a data structure representing a particular configuration command among the commands; creating and storing an intermediate data model that represents the configuration command, wherein creating the intermediate data model includes predicting one or more attributes of the configuration command; in response to programmatic input, selectively transforming the intermediate data model into a text representation of the particular configuration command or into a structured document representation of the particular configuration command.