add some cli code