command line create function