code generation cli work