Command Line Baking

Is there a way to re-bake a cloth simulation from a python script (ie, no GUI)? I can’t find a way to do it in the API…

Thanks!