After 10 years of design and construction the CMS pixel detector has been installed and commissioned. The pixel detector which has two parts, barrel layers and forward disks, consists of 66 M pixels of 100 μm × 150 μm size. In the paper the detector installation, commissioning and the results of the detector testing is presented. The basic electronic parameters of the detector like noise, threshold and the analog signal calibration are shown. The detector performance is illustrated by showing the pixel response uniformity and the number of dead channels.