[WIP] Add directory as option for createall command

Related with #1958 
can we support json or yaml?