I posted Tutorial on Using the CDS-beta with PyCharm on Windows. In this post I published the revised version of the official Observing floods with GloFAS tutorial (link).
Compare the the part of the revised code followed by download_file = f"{DATADIR}/glofas-2012_2024.grib"
related to data download from the new CDS-beta with original and you can see what you should change in your own scripts.