create cmd.json Automatically