move pubkeys command into cli