add cli command and unit test