add detail cli api