The CHEOPS space mission dedicated to exoplanet follow-up was launched in December 2019, equipped with the capacity to perform photometric measurements at the 20 ppm level. As CHEOPS carries out its observations in a broad optical passband, it can provide insights into the reflected light from exoplanets and constrain the short-wavelength thermal emission for the hottest of planets by observing occultations and phase curves. Here, we report the first CHEOPS observation of an occultation, namely, that of the hot Jupiter WASP-189 b, a M P ≈ 2M J planet orbiting an A-type star. We detected the occultation of WASP-189 b at high significance in individual measurements and derived an occultation depth of dF = 87.9 ± 4.3 ppm based on four occultations. We compared these measurements to model predictions and we find that they are consistent with an unreflective atmosphere heated to a temperature of 3435 ± 27 K, when assuming inefficient heat redistribution. Furthermore, we present two transits of WASP-189 b observed by CHEOPS. These transits have an asymmetric shape that we attribute to gravity darkening of the host star caused by its high rotation rate. We used these measurements to refine the planetary parameters, finding a ∼ 25% deeper transit compared to the discovery paper and updating the radius of WASP-189 b to 1.619 ± 0.021R J. We further measured the projected orbital obliquity to be λ = 86.4 +2.9 −4.4 deg, a value that is in good agreement with a previous measurement from spectroscopic observations, and derived a true obliquity of Ψ = 85.4 ± 4.3 deg. Finally, we provide reference values for the photometric precision attained by the CHEOPS satellite: for the V=6.6 mag star, and using a one-hour binning, we obtain a residual RMS between 10 and 17 ppm on the individual light curves, and 5.7 ppm when combining the four visits.