How to create a new domain with folder location by command on api

Hi i want to create new domain{child domain) not “new website” with folder location by command or api. how i do it plz help.