1. A method executed at least in part in a computing device for automatic command shell command code generation based on a schema, the method comprising: receiving the schema; generating a model for classes associated with the schema; optimizing the model to enable direct translation of the schema to an application programming interface (API); and generating code for a command for enabling manipulation of data structured according to the schema based on classes defined by the optimized model.