We report the development of a new type of space lidar specifically designed for missions to small planetary bodies for both topographic mapping and support of sample collection or landing. The instrument is designed to have a wide dynamic range with several operation modes for different mission phases. The laser transmitter consists of a fiber laser that is intensity modulated with a return-to-zero pseudo-noise (RZPN) code. The receiver detects the coded pulse-train by correlating the detected signal with the RZPN kernel. Unlike regular pseudo noise (PN) lidars, the RZPN kernel is set to zero outside laser firing windows, which removes most of the background noise over the receiver integration time. This technique enables the use of low peak-power but high pulse-rate lasers, such as fiber lasers, for long-distance ranging without aliasing. The laser power and the internal gain of the detector can both be adjusted to give a wide measurement dynamic range. The laser modulation code pattern can also be reconfigured in orbit to optimize measurements to different measurement environments. The receiver uses a multi-pixel linear mode photon-counting HgCdTe avalanche photodiode (APD) array with near quantum limited sensitivity at near to mid infrared wavelengths where many fiber lasers and diode lasers operate. The instrument is modular and versatile and can be built mostly with components developed by the optical communication industry.