1. A method of exposing a functionality of an application in a command interface comprising: receiving as input, by a processor, an application programming interface (API) defining the functionality of the application, the API including API objects, one or more of the API objects are annotated with annotations, wherein the annotations customize exposure of the functionality of the application on the command interface; and automatically generating from the API a command line interpreter (CLI) component, the CLI component to: parse a command and at least one argument received from the command interface, wherein during parsing, modify syntax of the received command and the at least one argument using the annotations, map the parsed command and the at least one argument to corresponding ones of the API objects, and dispatch the command to invoke the corresponding API objects.