The High Luminosity Large Hadron Collider (HL-LHC) at CERN is expected to collide protons at a centre-of-mass energy of 14 TeV and to reach the unprecedented peak instantaneous luminosity of 5 − 7.5 × 10 34 cm −2 s −1 with an average number of pileup events of 140-200. This will allow the ATLAS and CMS experiments to each collect integrated luminosities up to 3000 − 4500 fb −1 during the project lifetime. To cope with this extreme scenario the CMS detector will be substantially upgraded before starting the HL-LHC, a plan known as CMS Phase-2 upgrade. The entire silicon pixel detector will be replaced and the new detector will feature increased radiation hardness, higher granularity and capability to handle higher data rate and longer trigger latency. We present the plans and status of the upgrade pixel detector, focusing on the features of the detector layout and on the development of new pixel devices.