New cmd api