AU Mic is a young planetary system with a resolved debris disc showing signs of planet formation and two transiting warm Neptunes near mean-motion resonances. Here we analyse three transits of AU Mic b observed with the CHaracterising ExOPlanet Satellite (CHEOPS), supplemented with sector 1 and 27 Transiting Exoplanet Survey Satellite (TESS) photometry, and the All-Sky Automated Survey from the ground. The refined orbital period of AU Mic b is 8.462995 \ub1 0.000003 d, whereas the stellar rotational period is Prot = 4.8367 \ub1 0.0006 d. The two periods indicate a 7:4 spin-orbit commensurability at a precision of 0.1%. Therefore, all transits are observed in front of one of the four possible stellar central longitudes. This is strongly supp...