Finish remote cli commands